问题
Let's say I carry out the following steps immediately after first installing and opening Microsoft Visual Studio 2010:
File
->New
->Project
->Win32 Console App
->Finish
.Go to the
Property Manager
pane -> ExpandDebug | Win32
-> Right clickMicrosoft.Cpp.Win32.user
-> SelectProperties
.Wildly change settings in a clueless manner, and generally act like a fool.
Click
Apply
, save the project, and close Visual Studio.
How do I restore the Microsoft.Cpp.Win32.user
property sheet to its default, "factory" settings?
回答1:
I'm not sure if this is the official way, but it does work...
The default property sheets are stored in the following directory:
%USERPROFILE%\AppData\Local\Microsoft\MSBuild\v4.0
And if you delete them, they will be automatically recreated by Visual Studio using the default settings next time that it is launched.
So you can simply delete Microsoft.Cpp.Win32.user.props
from that directory and restart VS.
Putting it all together, from the command line, simply issue the following command:
del %USERPROFILE%\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props
来源:https://stackoverflow.com/questions/9248526/how-do-i-restore-a-property-sheet-to-its-default-value