如何将属性表恢复为其默认值? [英] How do I restore a property sheet to its default value?
问题描述
假设我在首次安装并打开Microsoft Visual Studio 2010之后立即执行以下步骤:
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
.
File
->New
->Project
->Win32 Console App
->Finish
.
转到Property Manager
窗格->展开Debug | Win32
->右键单击Microsoft.Cpp.Win32.user
->选择Properties
.
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.
单击Apply
,保存项目,然后关闭Visual Studio.
Click Apply
, save the project, and close Visual Studio.
如何将Microsoft.Cpp.Win32.user
属性表恢复为其默认的工厂"设置?
How do I restore the Microsoft.Cpp.Win32.user
property sheet to its default, "factory" settings?
推荐答案
我不确定这是否是官方方法,但确实可行...
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
如果删除它们,它们将在下次启动时由Visual Studio使用默认设置自动重新创建.
And if you delete them, they will be automatically recreated by Visual Studio using the default settings next time that it is launched.
因此,您可以简单地从该目录中删除Microsoft.Cpp.Win32.user.props
并重新启动VS.
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
这篇关于如何将属性表恢复为其默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!