Visual Studio 10,将配置管理器重置为出厂设置 [英] Visual Studio 10, reset configuration manager to factory settings

查看:140
本文介绍了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?

推荐答案

没有简单的方法可以返回到项目文件的默认配置.创建新项目时,它基于位于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:

  1. 删除项目目录中的* .user文件,其中包含一些构建配置值,例如命令行参数.
  2. 创建与您要重置的类型相同的新项目.
  3. 对于新的空项目和您现有的项目:右键单击并选择卸载项目",右键单击并选择编辑",然后复制新项目中的所有PropertyGroup部分,并将它们粘贴到旧项目中的所有PropertyGroup部分上.
  4. li>

以上内容假设您实际上并未添加或删除任何配置或平台,否则您将丢失这些更改.这样几乎可以将所有设置恢复为默认设置,而不会弄乱您的源文件或引用.

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.

这篇关于Visual Studio 10,将配置管理器重置为出厂设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆