Using Web Deployment Projects with Visual Studio 2005【转】
ASP.NET Technical Articles
Using Web Deployment Projects with Visual Studio 2005
Microsoft Corporation
November 2005
Abstract
Visual Studio 2005 provides deployment support through its Copy Web Site and Publish Web Site features. While these are ideal for many scenarios, there are other, more advanced scenarios where developers need the following capabilities:
- More control over assembly naming and output.
- Custom pre-processing and post-processing for the build.
- The ability to exclude, add, and transform files and directories during builds.
- The ability to modify the Web.config file to change database connection strings, application settings, or the URLs for Web references, depending on the build configuration. (For example, it might be necessary to use different values for development, test, staging, and release settings).
This white paper describes a solution to these advanced scenarios and introduces a new feature called Web Deployment Projects for Visual Studio 2005.
Download the code sample that accompanies this article, WebDeploymentSetup.msi.