Search code examples
visual-studiovisual-studio-2012continuous-deploymentweb.config-transform

Web config transformation in visual studio 2012


I am using visual studio 2012 and I am finding it difficult to add web.config files for diff environment. I looked at this link and tried right clicking on .pubxml file and choose add config transform option. After I do this, system adds web.simplePublish.config file which I am not able to rename using visual studio.

enter image description here

If I rename the file using windows explorer, the file is not listed under web.config tree in the solution.

enter image description here

What is the right way to add web.config files for various environments in Visual Studio 2012.


Solution

  • I used SlowCheetah - XML Transforms plugin of visual studio to create web.config files for diff environment.