Good article about ASP.NET 2.0 web site deployment options: both scripts and UI:
Precompiling the Site
This is the command you could use to pre-compile everything (this should all be entered on one line):
aspnet_compiler.exe -p c:\Projects\ASP.NET\TheBeerHouse\TBH_Web -v /TheBeerHouse c:\Deployment\TheBeerHouse
In the case of deploying to your own sites, it’s simpler to pre-compile only the source code files but not the markup files. To do this, just add the -u switch (which stands for updateable) to the command line, as follows:
aspnet_compiler.exe -p c:\Projects\ASP.NET\TheBeerHouse\TBH_Web -v /TheBeerHouse -u c:\Deployment\TheBeerHouse
Compile with fixed DLL names:
aspnet_compiler.exe -p c:\Projects\ASP.NET\TheBeerHouse\TBH_Web -v /TheBeerHouse -u -fixednames c:\Deployment\TheBeerHouse
Download Visual Studio 2005 Web Deployment Projects
Merge all ASP.NET DLLs into one:
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe c:\Deployment\TheBeerHouse
---
Keywords: ASP.NET 2.0, C#, VB.NET 2.0, WebForms, Web Forms, Deployment
No comments:
Post a Comment