There is no easy way to return to the default configuration for the project file. When you create a new project, it is based on a template located in your Visual Studio directory (for example, C: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ ProjectTemplates \ CSharp \ Windows \ 1033 \ ClassLibrary.zip) and VS has no way to reuse the template. However, you can return to the default configuration by doing the following:
- Delete the * .user file in the project directory; this contains several assembly configuration values, such as command line arguments.
- Create a new project with the same type that you are trying to reset.
- For a new empty project and an existing project: right-click and select "Unload project", right-click and select "Edit", then copy all PropertyGroup sections from the new project and paste them on top of all PropertyGroup sections in your old project.
The above assumes that you have not actually added or removed any configurations or platforms, otherwise you will lose these changes. This should return almost all settings to their default values ββwithout messing up the source files or links.
source share