Thursday, June 10, 2010

How to make project configuration for multiple environments:Web.config Transformation

Web.config Transformation Syntax for Web Application Project Deployment

automate the process of changing (transforming) Web.config files when they are deployed. For each environment that you want to deploy to, you create a transform file that specifies only the differences between the original Web.config file and the deployed Web.config file for that environment.

How to regenerate designer.cs in

Delete content in .designer.cs, and save
Go to html view, modify a little bit, (Such as add a space), then save

.designer.cs should be OK then.