Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net Web Application Add Config Transform Grayed Out

I added an existing ASP.Net web application project to my solution. In addition to the standard debug and release configurations this solution also has two custom configurations, SAT and UAT. For the new web application right clicking on Web.Config shows the context menu but the option for "Add Config Transform" is grayed out.

I'm at a loss. The new project is a web application. The Configuration Manager does not show the two custom configurations for this project but it does for the other projects. The project appears to have the correct entries in the solution file.

Thoughts?

like image 618
paulv7260 Avatar asked Jun 14 '12 16:06

paulv7260


People also ask

Why is add config transform greyed out?

If it's still grayed out, make sure that your web project has a build configuration that matches the name of the solution configuration and make sure that it's selected.


1 Answers

You must first define the configurations in the Configuration Manager. To be sure you are bringing up the Configuration Manager, you can access it by going to: Build->Configuraton Manager

In the Active Solution Configuration dropdown, select <New...>. Once you've added, you will then be able to "Add Config Transform".

Don't edit your solution file directly. It will only cause headaches.

like image 126
Jeremy Avatar answered Oct 08 '22 21:10

Jeremy