具有相同名称的配置已存在 [英] Configuration With Same Name Already Exists

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

问题描述

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

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


  • 调试

  • Debug-QA

  • 发布-UAT

  • 发布 - 生产

  • Debug
  • Debug-QA
  • Release-UAT
  • Release-Production

我可以轻松地为每个部署方案设置特定的设置。然而,由于某种原因,我不能按我想要的东西设置。请参阅以下屏幕截图:

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:

注意突出显示的项目/配置。我无法为这些项目创建一个Debug-QA配置(通过在该项目的单元格中选择< New> )。例如,当我尝试向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天全站免登陆