Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I restore a property sheet to its default value?

Let's say I carry out the following steps immediately after first installing and opening Microsoft Visual Studio 2010:

  1. File -> New -> Project -> Win32 Console App -> Finish.

  2. Go to the Property Manager pane -> Expand Debug | Win32 -> Right click Microsoft.Cpp.Win32.user -> Select Properties.

  3. Wildly change settings in a clueless manner, and generally act like a fool.

  4. 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?

like image 629
JimmidyJoo Avatar asked Feb 12 '12 11:02

JimmidyJoo


People also ask

How do I restore the default value of a property?

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.

What is the use of default value in the property?

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.

What is a default property?

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.


1 Answers

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
like image 159
Cody Gray Avatar answered Oct 20 '22 01:10

Cody Gray