To precompile your application for deployment, you must use the aspnet_compiler.exe tool that now
comes with ASP.NET 2.0. You navigate to the tool using the Command window. Open the Command
window and navigate to C:\Windows\Microsoft.NET\Framework\v2.0.xxxxx\. When you are
there, you can work with the aspnet_compiler tool.
Before you do, however, create a folder in your root drive called, for example, Wrox. This folder is the
one you ask the compiler to output to. When it is in place, you can return to the compiler tool and give
the following command:
aspnet_compiler -v [Application Name] –p [Physical Location] [Target]
So, if you have an application called INETA located at C:\Websites\INETA, you use the following commands:
aspnet_compiler –v /INETA –p C:\Websites\INETA C:\Wrox