Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resetting a Visual Studio C++ project's settings

I changed some parameters in a Visual Studio C++ project, and now I don't remember how to "go back". Is it possible to reset the build settings?

I don't mean the IDE settings (menu Tools -> Import and Export Settings).

like image 929
devoured elysium Avatar asked Sep 13 '09 04:09

devoured elysium


3 Answers

The command "devenv /resetsettings" will restore Visual Studio back to its original factory state.

You can find list of devenv switches here.

like image 90
MRG Avatar answered Oct 01 '22 11:10

MRG


Am I the only person that can read?!

The only way I know how to reset a "Parameter in a Project's Settings",,,

Is to open the Project file(csproj, vcxproj) with a text editor, and remove the block defining that parameter.

If you wanted to reset the Allow Isolation value, you would delete this text.

<AllowIsolation>true</AllowIsolation>

When project files are loaded by visual Studio, values which are not explicitly defined in the file, are assumed to be using the default. This will only work if the property has a default value(can't change some).

NOTE: This is NOT the same as Deleting the value from the Project Properties Dialog in VS. That method writes a blank value to your project file.

like image 24
diox8tony Avatar answered Oct 01 '22 10:10

diox8tony


You may be able to get the previous/saved version of your Visual Studio project (*.vcproj) from your software version control system.

like image 44
ChrisW Avatar answered Oct 01 '22 11:10

ChrisW