Home > Enterprise >  How do you rename a folder/directory in your project solution in Visual Studio 2022?
How do you rename a folder/directory in your project solution in Visual Studio 2022?

Time:11-29

I feel like this should be extremely straightforward and I'm not finding the options.

Every time I add a new folder to the solution it just creates it with the name "NewFolder" and I can't see an option to rename it.

CodePudding user response:

I found my answer. I believe Visual Studio prevents you from renaming a folder until you build the solution (for .NET). I built the solution and then was given the option to rename after right-clicking the folder...

CodePudding user response:

Do you see the blue background ?I do like below, and I don't need to buid the solution.

enter image description here

  • Related