Wednesday, April 6, 2011

Using Web.config transforms in ASP.Net Web Application projects

One of the interesting things about using Web.config transformations with ASP.Net Web Application projects is that the Build and Rebuild operations in Visual Studio do not automatically perform the necessary processing of the Web.config transformations. 

Instead, one actually has to use the Publish capabilities available through the ASP.Net Web Application project. 

  1. Right click on the ASP.Net Web Application project and select the menu option for Publish
  2. A Publish Web dialog should now display
  3. From the drop down list of Publish methods, select File System
  4. Specify a target location on the file system for publication
  5. Click on the Publish button to build the project and publish it to its desired target location

No comments:

Post a Comment