Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply existing build configuration to a new project

Here is the scenario,

  1. Created a new Web application (MVC5, Empty template) as "MyMVCWebApplication". Default build configurations are Debug and Release as usual.

  2. Import an existing project "Commont.Logger" which has Debug, Release, Test and Prod build configurations.

Once I added the Common.Logger project, VS 2013 show all Debug, Release, Test and Prod configurations in the build configuration drop down list (next to Run).

But I cannot do "Add Config Transform" for the web config (for Test and Prod) in the web project. Then I checked the "Configuration Manager", I noticed that it does not show Test and Prod configurations for the web project. In the Edit configuration it only has Rename and Remove, no "Add" function.

How can I add these Test and Prod build configurations to the Web project?

like image 833
Dhanuka777 Avatar asked Mar 01 '16 04:03

Dhanuka777


People also ask

What is a build configuration?

A build configuration describes a single build definition and a set of triggers for when a new build is created. Build configurations are defined by a BuildConfig , which is a REST object that can be used in a POST to the API server to create a new instance.

How do I add active solution configuration in Visual Studio?

Open the Configuration Manager dialog box. In the Active solution configuration drop-down list, choose Edit. The Edit Solution Configurations dialog box opens. Select the solution configuration name you want to change.


1 Answers

In the Configuration Manager (Build menu) you see a list of the projects. In the column Configuration you have a dropdown list. At the bottom of that list you have the option <New...>

update: As mentioned in the comments, this does not work straight away. Today I had a similar situation:

  1. When adding the new configuration, in the Configuration Manager, I unchecked "Create new solution configurations" and clicked ok.
  2. I set the config in the Toolbar to the desired one (Development)
  3. I right clicked on the app.config and from the context menu selected Add Transform (Slow Cheetah).

That added the app.Development.config

like image 129
Bob Lokerse Avatar answered Oct 29 '22 23:10

Bob Lokerse