Can't access build configuration manager or build configurations in Visual C# 2010 Express

自古美人都是妖i 提交于 2019-12-22 05:17:05

问题


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:


  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.



来源:https://stackoverflow.com/questions/16066536/cant-access-build-configuration-manager-or-build-configurations-in-visual-c-sha

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!