I have an existing Spring MVC maven project. Everything in the current project is exactly what I need as a template for a new Spring project. Is there any way I can use the existing project as a template and rename it to a new project without changing anything but the name. I tried to recreate the existing project from scratch and just add the same existing components but am running into a lot of problems with the dependencies and other jar files as well as configurations.
I got it. All I did was select copy from the file menu and then it allowed me to rename it.
First select your project, click on the File option in side of the file choose rename option then you can change the project name.
Related
I don't know if there's a way to achieve this, but I have a solution with its references on a single form page (made with ext.net, by the way) and wanted to use it as a reference to another project.
Is this possible?
Edit:
I think it was a poor question afterall. I have a solution with 3 different projects (web, entity and bals) and it's all good there. They all work together for a single form page. Now, I want all of that stuff to be inside another project, which is inside another solution, and call that page with its references from this other solution I'm trying to get it in.
To call an object (or a form) from your original solution in your new solution, you need to add references to Web, Entity and Bals.
There's 2 way to add a reference. You can add a reference to the compiled DLL / EXE or, if you have the source project, you can include the project in your solution (File -> Add -> Add Existing Project) and then add reference to that project.
If I understand your question, you would like to link an entire Solution instead of each projects individually. This can be done by changing the Add Existing Project filter from All Projects Files to Solution Files. This will allow you to import every project from the given .sln file.
However, this is a one shot deal operation that will import the projects at a given time. If you add or remove a project from your original solution after you linked them, you will have to do the same in your new solution.
When adding a reference to a project, you can select another project within the same solution or you can select a compiled DLL. If you have a library project in one solution and an application project in another solution then your only choice is to build the library project and then reference the compiled DLL in the application solution.
That said, there's nothing to stop you adding the same project to multiple solutions. You can add the library project to the same solution as the application project without removing it from its current solution and then you can work on it at the same time as the application, including debugging both at the same time. The application project can then reference the library project instead of the compiled DLL.
I'm trying to use some script files between different projects. I have one solution with four projects. In the project "A" I have some scripts like Jquery, Javascript Plugins, etc, and i want to use them on the project "B", by adding a scriptmanager, or anything that works. What can i do this?
I'm using Visual Studio 2010.
Here is a printscreen with my environment.
[EDIT]
Hello, after doing what #CStick says, a have now the scripts in my other project, so a can't add them to a ScriptManager. The problem is path not found on Asp.net code. It cant find the script cause they're placed in the other project. What can i do to solve it?
I know this is old, but for future reader i post an answer.
You will have to use "Link project file" for this.
From the target project, right click on the folder you what the file to be
Select add -> Existing file
Browse to the file you need then click on the arrow at the right of the add button and select add as a link
After this you can modify the file in booth project, but the fille will be only in the source physical location until you publish the project.
This can cause problem for client side file, like script file, on debug because you cant view the file because it's not physically in the target project.
You can use MsBuild to copy the source file on the target directory on build.
(See this answer)
In short, you will create a .targets file then add a reference in your project file.
I have a javascript project that is still in development;
Then I have another rails project that will use the javascript project;
I would like to have in "my-rails-project/public/javascript/" the link to the other javascript project.
I would like to be able to make changes within the rails-project and affect the javascript-project.
Is this possible and how?
thanks (:
This is general Eclipse thing and not related to Aptana in particular.
Simply start creating a new Folder and on the wizard page click "Advanced>>>", then choose Linked Folder and Browse to location of your javascript project.
That's it.
Cheers,
Max
Whenever I start a new project in Flex builder I always have to go and add all my project build paths, adjust the compiler settings, etc. Is there a way I can make a template with all that done and then just click new from template?
Thanks.
No, but I can think of a workaround or two. Try importing an existing project to a new location, then delete what you don't need.
Even better, you could make a "template" project that has all the settings you want. Then, whenever you want to create a new project, create one, then on the command-line or using Finder (or explorer), copy the project files from the template project in, making sure to update the name correctly. The files that control this are: .flexProperties, .actionScriptProperties, .settings/, and .project, I believe. They are in the root folder of any FB project.
I have a website project, and using Linq to SQL in it. Currently, I have my .dbml file in the App_Code directory, but I want to separate it out into a different project in order to compile it into a separate dll; is it possible?
I tried adding a DB project to my solution, but didn't have much luck with it.
Yes, it is possible.
Just create a new project of type class library, and copy and paste your .dbml into the new project. Add a reference to the new project (class library) on your website project in the end.
I believe that a DB project is just a way to store SQL Scripts to be executed against a DB.