Setting up Visual Studio 10 Configuration Manager, reset to factory

I made a few changes for both debugging options and release, and now I want to get back to factory settings. How can i do this?

+4
source share
3 answers

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.

+1
source

If you have a backup of your project, simply search for files with the extension .user in the backup, then copy them and simply replace the files from your current project. Reopen your project. What he

In my case, there are 2 files with the extension .user . This is sampleForm.vbproj.user and MyProject.vbproj.user

0
source

If you want to reset, your VS will follow the steps below

  • From the Tools menu, select Import and Export Settings.

  • On the Welcome to Import and Export Wizard page, click reset all settings, and then click Next.

  • If you want to save the current combination of settings, click "Yes", save my current settings, specify the file name and click "Next".

-1
source

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


All Articles