Visual Studio 10,将配置管理器重置为出厂设置
我对调试和发布设置进行了一些更改,现在我想返回到出厂设置。我怎么能这么做呢?
I have made several changes to both debug and release settings and now I want to return to factory settings. How could I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有简单的方法可以返回到项目文件的默认配置。当您创建新项目时,它基于位于 Visual Studio 目录中的模板(例如 C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary.zip) VS 没有办法重新应用模板。但是,您可以通过执行以下操作手动返回到默认配置:
上述假设您实际上没有添加或删除任何配置或平台,否则您将丢失这些更改。这应该使几乎所有设置恢复为默认值,而不会弄乱您的源文件或引用。
There is no easy way to go back to the default configuration for a project file. When you create a new project it's based off a template located in your Visual Studio directory (e.g. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplates\CSharp\Windows\1033\ClassLibrary.zip) and VS has no way of reapplying the template. However, you can manually go back to the default configuration by doing the following:
The above assumes you didn't actually add or remove any configurations or platforms, otherwise you will lose those changes. That should get almost all the settings back to their defaults without messing up your source files or references.
如果您有项目的备份,只需在备份中搜索具有
.user
扩展名的文件,然后复制它并简单地替换当前项目中的文件。重新打开您的项目。就我而言,有 2 个带有
.user
扩展名的文件。它是sampleForm.vbproj.user
和MyProject.vbproj.user
If you have a backup of your project just search for the files that has
.user
extension on your backup then copy it and simply replace the files from your current project. Re-open your project. That's itIn my case there are 2 files with
.user
extension. It issampleForm.vbproj.user
andMyProject.vbproj.user
如果您想重置 VS,请按照以下步骤操作
在“工具”菜单上,单击“导入和导出设置”。
如果您想保存当前设置组合,请单击是,保存当前设置,指定文件名,然后单击“下一步”。
If you want to reset your VS follow below mentioned steps
On the Tools menu, click Import and Export Settings.
On the Welcome to the Import and Export Settings Wizard page, click Reset all settings and then click Next.
If you want to save your current settings combination, click Yes, save my current settings, specify a file name, and then click Next.