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 -> Expand Debug | Win32
-> Right click Microsoft.Cpp.Win32.user
-> Select Properties
.
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?
In short, there's no easy way to restore to default values to whatever a browser uses . The closest option is to use the 'initial' property value, which will restore it to the default CSS values, rather than the browser's default styles.
The DefaultValue property specifies text or an expression that's automatically entered in a control or field when a new record is created. For example, if you set the DefaultValue property for a text box control to =Now(), the control displays the current date and time.
A default property is a class or structure property that your code can access without specifying it. When calling code names a class or structure but not a property, and the context allows access to a property, Visual Basic resolves the access to that class or structure's default property if one exists.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With