Thursday, June 10, 2010

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

Web.config Transformation Syntax for Web Application Project Deployment
http://msdn.microsoft.com/en-us/library/dd465326(VS.100).aspx

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 asp.net

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.