1. 创建ASP .NET Web Application
2. 创建SetUp Project,添加Project Output/ WebSite.Content Files (Precompile File without *.cs ).
另外,可以订制一些操作。
View User Interface,Custom Actions.
比如:
http://www.cnblogs.com/xuzhixiong/archive/2006/06/27/437056.html
3. 可以用Web Deployment Projects with Visual Studio 2005产生良好的PreCompile
http://msdn.microsoft.com/en-us/library/aa479568.aspx
- ASP.NET 2.0 precompilation as part of the build process.
- More flexible options for generating compiled assemblies from a Web project, including these alternatives:
- A single assembly for the entire Web site.
- One assembly per content folder.
- A single assembly for all UI components.
- An assembly for each compiled file in the Web site.
- Assembly signing options.
- The ability to define custom pre-build and post-build actions.
- The ability to exclude folders from the build.
- The ability to modify settings in the Web.config file, such as the <connectionString> element, based on the Visual Studio build configuration.
- Support for creating .msi files with setup projects.