Cannot rename a Visual Studio 2010 project.

I have a Visual Studio 2010 solution that is also under source control (TFS 2010). Usually I have no problem renaming a subproject; just right click, rename and life will be good!

However, now I have one project that I am trying to rename, but whenever I right-click, type in a new name and then press Enter, it returns to the old name!

I have to lose my mind here!

+4
source share
4 answers

In the end, it seemed like a TFS problem. It was a lingering shelf that was mapped to a project that would not allow me to change it at all. As soon as I was able to get the TFS administrator to make the necessary changes, everything was fine!

+1
source

You probably already have a file with the name that you are trying to use on the file system, but not as part of the solution / project.

Use Windows Explorer to find and delete this file, and you should be fine.

+1
source

Just try Reset Settings

The "devenv / resetsettings" command will return Visual Studio back to its original factory state. If you previously saved your settings from option 1 above, you can pass them as a parameter: "devenv / resetsettings".

Or, if you saved the previous settings, try importing "Tools" > "Import and Export Settings…" along this path, and your problem will be solved.

If this is v1 sorry, you cannot rename it as it is mentioned here http://social.msdn.microsoft.com/forums/en-US/tfsgeneral/thread/9e50138e-46f2-4f7f-ba09-e5624d30250b/

0
source

I tried to disconnect from TFS, but did not give results = (

So, I tried to delete the file "SolutionName.suo" and it did the trick! I was able to rename my project. Buggy VS 2010 = (

0
source

Source: https://habr.com/ru/post/1380031/


All Articles