Monday 21 January 2008

Compiling Code Using The SDK Command Prompt

If like me you have the free version of Visual Studio, i.e. Visual Web Developer Express 2005, and you have had the same drama trying to find the Publish Website Option, which basically doesn't exist, not in my version anyway, you will have to use the Command Prompt Tool in the .NET Framework SDK to compile your source code.

Here's an example:

C:\Program Files\Microsoft.NET\SDK\v2.0>aspnet_compiler -v myWebsite -p C:\Inetpub\wwwroot\myWebsite c:\myWebsite

Type aspnet_compiler -? at the command prompt to see what the switches mean.

No comments: