Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 431
Zenexer Avatar asked Apr 17 '13 17:04

Zenexer


People also ask

How do I access the Configuration Manager in Visual Studio?

The project configuration determines what build settings and compiler options are used when you build the project. To create, select, modify, or delete a configuration, you can use the Configuration Manager. To open it, on the menu bar, choose Build > Configuration Manager, or just type Configuration in the search box.

How do I get build options in Visual Studio?

If you want to build multiple configurations and platforms in one action, you can use the Build > Batch Build option in Visual Studio. To access this feature, press Ctrl+Q to open the search box, and enter Batch build .

How do I enable solution configuration in Visual Studio?

The standard Visual Studio toolbar contains a Start button and a solution configuration drop-down to the right of the Start button. This list allows users to choose the configuration to be started when F5 is pressed, create their own solution configurations, or edit an existing configuration.

How do I change from x86 to x64 in Visual Studio?

From the BUILD menu in Visual Studio, select Configuration Manager. From the Active solution platform drop-down list, select New. The New Solution Platform dialog displays. In the Type or select new platform combination box, select x64.


1 Answers

  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.

like image 191
Zenexer Avatar answered Sep 19 '22 00:09

Zenexer