ASP.Net Web Application Add Config Transform Grayed Out

asp.nettransformweb.config

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?

Best Answer

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.