How do I rename a Project Folder from within Visual Studio?

To clarify Mortens solution: Close the solution. Rename the folders outside Visual Studio. Open the solution, ignoring the warnings (answer "no" if asked to load a project from source control).

Go through all unavailable projects. Set the property 'File Path' to the new location. Reload the project.In case you didn't rename the project, rename it (F2).

1 +1 for telling me there's a FilePath property. Too bad I did not find out this earlier :-( – Marcel May 31 '10 at 11:26 7 For those using source control, I think you'd need to rename the folder in source control too. For me, the above steps didn't do so.

– Patrick Szalapski Nov 9 '10 at 14:33 3 FilePath is in the properties pane of the broken project... – andrew007 Apr 12 at 14:00 1 When using TFS step 2 is actually to rename the folder in source control and then get the latest before reopening the sln. – Amy Patterson Oct 6 at 16:10.

Currently, no. Well, actually you can click the broken project node and in the properties pane look for the property 'Path' then click the small browse icon and select the new path. Voila :).

1 for telling me there's a FilePath property. Too bad I did not find out this earlier :-( – Marcel May 31 '10 at 11:29.

There is another way doing this, using the *. Sol, *csproj files. Open your solution file search for the *.

Csproj you would like to change it will be like this (relative to the *. Sol file): Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shani.Commands. Impl", "Shani.Commands.

Impl\Shani.Commands.Impl. Csproj", "{747CFA4B-FC83-419A-858E-5E2DE2B948EE}" and just change the first part to the new diretory for example: Impl\Shani.Commands. Impl\Shani.Commands.Impl.

Csproj of course don't forget to move the whole project to that directory Have fun.

In andersjanmyr's answer its easier to rename the project first. Rename project Close the solution (save it) Rename the folders outside Visual Studio. Open the solution, ignoring the warnings.

Go through all unavailable projects and set the property 'File Path' to the new location of your project file. Ie someproject. Csproj Reload the project Also, after those steps are carried out you might want to rename other references to your old project name.In project properties, update the Assembly Name and Default Namespace.

This will update the following in the project file... SomeProjectName SomeProjectName ...and will get rid of the error "Namespace does not correspond to file location, should be: 'SomeProjectName'" Rename your root namespace (if you have resharper right click the Namespace and go Refactor -> Rename). Change all occurences of your old project name in AssemblyInfo.cs.

See item 3 in linked article. A. Close the solution and the IDE b.In Explorer: Change the directory name to the new name.

C. In Explorer: Open the . Sln file with a text editor.

C. Change the directory name to the new name and save.D. Restart the IDE and open the solution from the File, Recent Files menu if it doesn't start automatically.

E. Click on the Project folder of the Solution Explorer and check the path property in the properties at the bottom.It will now be referencing to the new project folder. It worked for me.

Andersjanmyr's Solution: you may press Alt+Enter to bring up the Properties Page for the unavailable project and set the "File Path" property there; since it is not available in the right-click_context-menu of the unavailable project (in VS2008).

There is no simple, one-click way of doing it. Not from within Visual Studio, anyways.

NOTE: This fix is for Visual Studio 2008, but should work here. Using Windows Explorer, rename both the solution folders (the parent folder and the child folder) to the new solution name. Delete the .

Sln file located in the parent folder. In Visual Studio, select File|Open Project. Drill into the new folder you just renamed and open the .

Csproj file (located in the child folder). Right-click the project name and rename it to what you want. (Should be the same name as the folder in step 1.) Select File|Close Solution.

A dialog will ask if you want to save changes to the . Sln file. Click Yes.

In the Save File As dialog, point to the newly renamed PARENT folder and click save. (NOTE: Make sure the . Sln file has the same name as the folder.

Not required, but maintains consistency. ) DONE.

I just had to do this myself (using VS2010). As some folks have answered, the simplest step seems to be: Close the VS project. Open the .

Sln file and rename the project directory prefix for each of the . Csproj occurrences. Save the .

Sln file Rename the actual project folder directory on your hard drive to match your changes in . Sln file. Open the .

Sln (in VS) and rebuild.

I have written a small tool that automates all these steps. Also supports subversion for now. Download it here: Visual Studio Project Renamer If you are using the tool, please leave some feedback.

I may be able to improve it alot. Regards.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions