rename project folders and files
Create a way to rename a project folder. This is closely related to http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2517011-enable-project-renaming- and http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3054944-rename-the-project-folder-when-renaming-a-project
I would like a way where I can change a folder name and optionally filenames: Project -> right click -> rename folder and files... -> give a new name, select folder, output filename or both ->
* Visual Studio updates name of the the solutiondirectory
* Visual Studio updates the solution to point at the new directory
* Visual Studio updates references of other projects to this project to the new directory
* Visual Studio updates the project to reflect the new output file name
* Visual Studio cleans the old files from the output dir if present
Extra brownie points for optionally integrating this in the rename project functionality (update output file name and directory to NEWNAME? <yes> <no>)
Double extra brownie points for a 'search for references to this directory from other tools': text-based search for all files not in obj or bin dirs in all folders under the solution dir that contain the old filename, and ask if the old directory name should be replaced with the new one, or if you want to open the files and edit them manually.
Unless I've overlooked something, it seems almost impossible to rename a VS project once it is saved to the Projects folder.
I would love to see a renaming feature which renames the folders and project files, as well as amending any paths and names stored in the associated text and XML files.
David Kean commented
Hey, just to let you know we haven't forgotten about this. Right now, we're rewriting the existing 15 year old C#/VB "project system" over here https://github.com/dotnet/roslyn-project-system. This is a multi-release project but will set us up in the long term to easily tackle big features such as this one.
For example, in the past few months, we've added wildcard support (*.cs) and the ability to edit the project file while it is loaded, as well as automatically "refresh" the project from disk without reloading. In the Visual Studio 2017 timeframe, this will be enabled for .NET Core-based projects but in a future update we'll enable it for all C# and VB projects.
Head over to the Github site if you'd like to get involved in the community.
Greg St. Angelo IV commented
This was posted in 2012 and it is almost 2017. Please do this, it really should not take 5+ years for your flagship IDE to support proper project renaming.
We have a tool that creates folders with read only names. Add to the fact the everything works fine when renamed outside the tool that creates this folder and the issue should be apparent.
Can anyone guess what tool this is? I bet no one who has not run into this problem would guess its Microsoft's flagship development environment unless maybe I said the year was 1986.
This is happening in 2016. This is a side effect when marketing gets too much power.
As powerful as VS is, why is this not already a feature?
+1 This is a must
Yes it is important!
I need this now!
David Cunningham commented
Yeah ...and Yeah again
Debalin Das commented
Please get this done !
Please Add this functionality.
please consider changing as requested.
Get it done!!
Muhammad Waqas Aziz commented
Consider me in too
please add this much needed functionality. This should be in it by default.
This should have been included a LOOOOONG time ago.... MS, listen to your developers. Doing this manually is a freaking pain and even more so when TFS is involved.
do something :D
Howard Woods commented
Yes, yes, please.