Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom solution configuration not showing up in Visual Studio 2010

I added a solution configuration called 'Staging'. It does show up on the drop down in VS, but not in the Configuration Manager in 'Package/Publish Web' screen. On this screen, the ones I see in the dropdown are:

  • Active (Release)
  • Debug
  • Release
  • All Configurations

I don't see Staging in here for me to package in the Staging mode

like image 276
Nick Avatar asked Jun 24 '10 15:06

Nick


People also ask

How do I add solution configuration in Visual Studio?

In the Active solution configuration drop-down list, choose New. The New Solution Configuration dialog box opens. In the Name text box, enter a name for the new configuration. To use the settings from an existing solution configuration, in the Copy settings from drop-down list, choose a configuration.

Where is the 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 open solution configuration 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.


1 Answers

I found a solution to the issue of adding a new project AFTER creating a custom build config -

  1. Right click on the solution.
  2. Select "Properties" from the context menu.
  3. In the resulting dialog, click on "Configuration Properties" in the left hand pane.
  4. Click the "Configuration Manager..." button on top right.
  5. Scroll down to your new project.
  6. Under the "Configuration" column for your project, select <New...>.
  7. In the resulting dialog, enter the name of your existing project, and un-check the box that says "Create new solution configurations" (since it already exists on the solution level).
  8. Go into the properties of that project and you will now see this configuration. Apply necessary properties for that configuration in your project.
like image 67
shawn Avatar answered Sep 25 '22 23:09

shawn