Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Web Config Transform without publish with Visual Studio 2012?

Does Visual Studio 2012 support running a solution using a specific Web.config transform without the requirement to publish? We are using the web.config to change client settings on publish and want to test them locally.

like image 247
GraemeMiller Avatar asked Aug 29 '12 12:08

GraemeMiller


People also ask

How does Web config transform work?

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.

How do I open Web config file in Visual Studio?

Click Add to create the file and open it for editing. The file contains the code shown in the "Example" section later in this topic, with a few initial defaults. Your application inherits all configuration settings from the Machine. config and Web.


1 Answers

Not quite the same, but you can preview transformations using Visual Studio 2012+

Preview transformation

Note: if you're using SlowCheetah you need to save the file before you preview.

like image 99
Rob Church Avatar answered Oct 05 '22 10:10

Rob Church