Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web.config transformation option is greyed out

In VS2010, when I right click on my web.config file the "Add Config Transforms" option is greyed out.

Any idea how I can get that back?

like image 660
NotMe Avatar asked Aug 26 '10 17:08

NotMe


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.

How do I create a new transformation in web config?

If you have a web application project, Right-click on web. config and choose Add Config Transform. This will add any config transforms that are missing from your project based on build configurations (i.e. if you have Production and Staging build configs, both will get a transform added).

What is web config transform?

A Web. config transformation file contains XML markup that specifies how to change the Web. config file when it is deployed. You can specify different changes for specific build configurations and for specific publish profiles.

Where is web config file in Visual Studio 2019?

config file is located in the %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\ folder. The default settings that are contained in the Machine.


1 Answers

It was greyed out because there were already transforms for all of the listed configurations.

I couldn't see the transform files because vb.net in its infinite wisdom decided not to natively show the associated config files. Apparently there is no choice but to select "show all files" in order to see them.

like image 182
NotMe Avatar answered Oct 05 '22 02:10

NotMe