Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web.config transformations not showing up in VS2010

I just added three configurations to my web application. I then right clicked web.config and selected "Add Config Transforms". The three files were created, but there is no expander next to web.config in the solution explorer and the transforms are not applied when deployed (Build Deployment Package).

I've rebuilt the solution, dragged the files into the solution explorer, Add>Existing Item, and closed/reopened VS. Still not showing up.

Any ideas?

like image 614
Chad Schouggins Avatar asked Oct 04 '12 14:10

Chad Schouggins


People also ask

Where is web config file in Visual Studio 2022?

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

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 Xdt transform SetAttributes?

The xdt:Transform attribute value "SetAttributes" indicates that the purpose of this transform is to change attribute values of an existing element in the Web.


1 Answers

VB strikes again. VB applications don't show them unless "Show all files" is selected. Brilliant.

like image 75
Chad Schouggins Avatar answered Dec 05 '22 00:12

Chad Schouggins