Visual-studio – How to prevent Visual Studio from creating “Properties” folder


The default "AssemblyInfo" goes in there, but I dont need it for our directory structure. Every time I delete the "Properties" folder inside my project, it gets recreated on reload. How to prevent that?

Best Solution


Open the solution and make sure you don't have the file "AssemblyInfo.cs" in the Properties folder. If you do move it to the root of the project. Save Solution and close Visual Studio.


Open the project file (*.csproj) with a text editor like Notepad++ and search and remove these two entries:



<Folder Include="Properties\" />

then save the project file and reopen the Solution in VS. That should do the trick.

Regards, Mike