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

visual-studio

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

First:

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.

Second:

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

<AppDesignerFolder>Properties</AppDesignerFolder>

and

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

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

Regards, Mike