同名配置已存在 [英] Configuration With Same Name Already Exists

查看:17
本文介绍了同名配置已存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含 10 多个项目的解决方案 (VS2010 SP1).我在解决方案中定义了以下配置:

I have a solution with 10+ projects (VS2010 SP1). I have the following configurations defined in the solution:

  • 调试
  • 调试-QA
  • 发布-UAT
  • 发布-制作

这让我可以轻松地为每个部署场景设置特定的设置.但是,由于某种原因,我无法按照自己的意愿进行设置.请看这个截图:

This allows me to easily setup specific settings for each deployment scenario. However, for some reason I can't get things setup as I'd like. Please see this screenshot:

注意突出显示的项目/配置.我无法为这些项目创建调试 QA"配置(通过在该特定项目的单元格中选择 ).例如,当我尝试向 DataUtility 项目添加新的Debug-QA"配置时,Visual Studio 对我大喊:

Notice the highlighted projects/configurations. I am unable to create a "Debug-QA" configuration for these projects (by selecting <New> in the cell for that particular project). When I try to add a new "Debug-QA" configuration to the DataUtility project, for instance, Visual Studio yells at me:

无法创建此配置,因为已存在同名的解决方案配置.

This configuration could not be created because a solution configuration of the same name already exists.

我知道有!我正在尝试将配置添加到项目中!我在这里错过了什么?我希望所有项目都具有所有 5 种配置.我在尝试匹配(创建)平台时遇到了同样的问题(例如,向 DataUtility 项目添加任何 CPU"平台).

I know it does! I'm trying to add the configuration to the project! What am I missing here? I want all projects to have all 5 configuration. I have the same problem when trying to match up (create) platforms (for instance, adding an "Any CPU" platform to the DataUtility project).

推荐答案

确保您使用的是网格中的下拉列表(不是对话框顶部的下拉列表),并且不要选中创建新添加新项目配置时的解决方案配置"复选框.

Make sure you're using the drop down list from the grid (not the one at the top of the dialog), and do not check the "Create new solution configurations" checkbox when adding your new project configuration.

这篇关于同名配置已存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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