Wednesday, May 26, 2010

Automate Changes to web.config files for unit testing ASP.NET Web Services

We're starting to automate unit tests with our build process and I was told about some new features in VS2010 to help us out. Thanks to John Z. for pointing this out. With Visual Studio 2010, you can manage both the developer and release versions of web.config files and even publish different database versions.
Here is the main link on Microsoft's website for these features. http://msdn.microsoft.com/en-us/library/dd394698(v=VS.100).aspx
Specifically, Here is the link to creating a transform for the web.config file. http://msdn.microsoft.com/en-us/library/dd465318(v=VS.100).aspx
Also, you can specify a database by following the informaiton here. http://msdn.microsoft.com/en-us/library/dd465343(v=VS.100).aspx
Here is a summary of a blogger that has discussed these deployment options. http://vishaljoshi.blogspot.com/2009/09/overview-post-for-web-deployment-in-vs.html

No comments: