无法访问构建配置管理器或在Visual C#2010速成生成配置 [英] Can't access build configuration manager or build configurations in Visual C# 2010 Express

查看:215
本文介绍了无法访问构建配置管理器或在Visual C#2010速成生成配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全文



通常情况下,当我安装Visual C#2010 Express中,我做的是切换到专家设置的第一件事。这给了我访问生成配置,以及各自的经理。这个最新安装似乎是行为不端。



这是我创建的是一个XNA 4.0(刷新)项目中的第一个项目。我进口了一些旧代码,切换到专家设置,并证实我能够访问这两个构建配置管理器和构建配置工具栏。然而,当我打开项目属性,切换到Build选项卡,均无处可寻正常的配置和平台的下拉列表中。此外,该版本的设置显然是在使用中,即使调试被选定为活跃在工具栏/经理。



我什么都试过重新启动Visual Studio中手动编辑。 XML的csproj - 这,顺便说一句,标志着调试作为有效的配置:没有释放。有趣的是,不管是什么版本配置的顺序,如果发行存在,这将是配置的真正的活跃在项目属性(而不是从下拉工具栏中选择)。记住,这通常出现在项目属性页面不存在,出于某种原因,下拉菜单



有没有运气,我创建了一个单独的解决方案两个新鲜项目:控制台应用程序和WinForms应用程序。这一次,构建配置经理甚至没有出现在生成菜单和工具栏的下拉列表被禁用,因为如果我甚至没有开放的解决方案。



我找啊找,但我无法找到一个解释 - 或解决 - 针对此行为



注:我也有机会获得视觉。Studio 2010中通过MSDN,所以升级是一个可行的解决方案,如果需要的话



 



TL;博士



是的,我已经切换到专家设置。




  • 的Windows 8专业版,最多最新

  • 新鲜十岁上下的Visual C#2010 Express安装

  • XNA 4.0刷新



问题




  1. 新XNA项目:

    • 开关生成配置对实际配置没有影响;它总是停留在发行,尽管说否则

    • 在项目属性 - >建设,为构建配置/平台的下拉列表中不存在


  2. 新的控制台/ WinForms项目:

    • 构建配置管理器是不是在生成菜单
    • $ b $。 b
    • 构建配置工具栏有下拉菜单禁用,没有被选中。




已经尝试




  • 删除发布配置结果
    作用:切换到调试


  • 重新创建发布配置结果
    功效:切换到后删除调试,然后再在娱乐来释放


  • 在文本编辑器结果
    效应的.csproj XML小提琴:无;看起来很好用


  • 开始重新创建结果
    影响所有配置:总是在发布

    土地

  • 重新启动Visual C#快讯2010年结果
    效果:无


  • 拨弄设置结果
    效果:无


  • 刷新项目结果
    效果:无



解决方案

  1. 开启菜单:工具 - > 选项 ...

  2. 选择项目和解决方案

  3. 检查显示高级生成配置



我不记得给需要在过去实现这一点,虽然我也总是要切换到专家设置。再说,我现在已经使用Visual Studio 2012已有一段时间,所以我可能只是忘了。我也很少使用快递,所以这可能是快递和完整版本之间的差异。


Full Story

Typically, when I install Visual C# 2010 Express, the first thing that I do is switch to Expert Settings. That gives me access to build configurations, and the respective manager. This most recent installation seems to be misbehaving.

The first project that I created was an XNA 4.0 (Refresh) project. I imported some old code, switched to Expert Settings, and confirmed that I was able to access both the build configuration manager and the build configuration toolbar. However, when I opened the project properties and switched to the Build tab, the normal Configuration and Platform dropdowns were nowhere to be found. Additionally, the Release settings were clearly in use, even though Debug was selected as active in the toolbar/manager.

I tried everything from restarting Visual Studio to manually editing the .csproj XML--which, by the way, marked Debug as the active configuration: not Release. Interestingly, no matter what the order of the build configurations, if Release was present, that would be the configuration actually active in project properties (not selected from the dropdown in the toolbar). Remember, the dropdowns that usually appear on the project properties pages aren't present, for some reason.

Having no luck, I created two fresh projects in a separate solution: a console application and a WinForms application. This time, the build configuration manager wasn't even present in the Build menu, and the dropdowns in the toolbar were disabled, as if I didn't even have a solution open.

I've searched and searched, but I cannot find an explanation--or a solution--for this behavior.

Note: I do have access to Visual Studio 2010 through MSDN, so upgrading is a viable solution, if necessary.

 

tl;dr

Yes, I've switched to Expert Settings.

  • Windows 8 Pro, up-to-date
  • Fresh-ish Visual C# 2010 Express installation
  • XNA 4.0 Refresh

Problems

  1. New XNA project:
    • Switching build configurations has no effect on actual configuration; it is always stuck on Release, despite saying otherwise.
    • In project properties -> Build, dropdowns for build configuration/platform aren't present.
  2. New console/WinForms project:
    • Build Configuration Manager isn't in Build menu.
    • Build configuration toolbar has dropdowns disabled, and nothing is selected.

Already Attempted

  • Delete Release configuration
    Effect: Switches to Debug

  • Recreate Release configuration
    Effect: Switches to Debug upon deletion, then back to Release upon recreation

  • Fiddle with .csproj XML in text editor
    Effect: None; looked fine to begin with

  • Recreate all configurations
    Effect: Always lands on Release

  • Restart Visual C# Express 2010
    Effect: None

  • Fiddle with settings
    Effect: None

  • Reload project
    Effect: None

解决方案

  1. Open menu: Tools -> Options...
  2. Select Projects and Solutions
  3. Check Show advanced build configurations

I don't recall needing to enable this in the past, though I did always have to switch to Expert Settings. Then again, I've been using Visual Studio 2012 for a while now, so I might just have forgotten. I also rarely used Express, so this might be a discrepancy between Express and full versions.

这篇关于无法访问构建配置管理器或在Visual C#2010速成生成配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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