Click here to Skip to main content
12,953,065 members (39,977 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Revisions
Add your own
alternative version


20 bookmarked
Posted 2 Nov 2008

Automating Compilation in Visual Web Developer 2008 Express

, 8 Jul 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
A tutorial on how to compile web pages to DLLs using the Express edition of Visual Web Develper 2008
This is an old version of the currently published article.


Express editions are the down-sized, free IDEs provided by Microsoft, so that developers can experiment and get a feel of what the Enterprise editions will look like. One of the products provided in the Express edition suite is Web Developer 2008 Express edition. Visual Web Developer lets us make web applications in .NET. One of the big drawbacks of Visual Web Developer Express edition is that it helps to debug, but does not compile ASPX pages. In other words, no DLL is generated for the ASPX pages. This tutorial will discuss how we can use aspnet_compiler.exe to generate DLLs for web projects developed in Visual 2008 Web Developer Express edition.

For some days I have been writing and recording videos in design patterns, UML, FPA, Enterprise blocks, and lot you watch the videos at You can download my 400 .NET FAQ eBook from here.

Aspnet_compiler.exe to the rescue 

As said previously, Visual Web Developer Express does not compile DLLs for ASPX pages. However, we can achieve this by using the compiler aspnet_compiler.exe. Aspnet_compiler.exe is located in the framework directory. You can find the it in Windows\Microsoft.NET\Framework\v2.0.50727\. You can download the 2.0 Framework from here.

Below are the command line parameters commonly used with aspnet_compiler.exe

-? Prints a description of all parameters.
-vSpecifies the path that follows is a virtual path.
-pThe physical path of the application to compile.
-uSpecifies the compiled application can be updated.
-cCauses the compiled application to be fully rebuilt, overwriting any existing files.
-d Creates debug output, making the application easier to debug if a problem arises after its copied.

Using external tools for automation

We will specify the aspnet_compiler.exe utility in the external tools of the IDE. So click on tools → external tools and you will be shown the dialog box as shown below.

Enter the command, arguments and title as shown in the figure below. 

The most important part is the arguments. We have used the 'ProjectDir' variable to get the current web project path. So –p provides the project path. –V specifies where the ASP.NET DLL should be sent. We have given the directory name as 'FullyCompiled'. The two dots before the directory name specifies that this folder should be in the web directory. So if your web directory is in "C:\Shiv", then the DLL's will be compiled in "C:\Shiv\FullyCompiled". 

-p "$(ProjectDir)" -v / "$(ProjectDir)\..\FullyCompiled"

Now you will find a compile item in the Tools menu as shown below.

Hit it and you will see a compiled DLL of your ASPX pages in the FullyCompiled folder.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

You may also be interested in...


Comments and Discussions

Discussions posted for the Published version of this article. Posting a message here will take you to the publicly available article in order to continue your conversation in public.
GeneralMy copy of VWD Builds DLL's Pin
GriffinPeter4-Nov-08 4:42
memberGriffinPeter4-Nov-08 4:42 
GeneralRe: My copy of VWD Builds DLL's Pin
Shivprasad koirala5-Nov-08 22:12
memberShivprasad koirala5-Nov-08 22:12 
GeneralRe: My copy of VWD Builds DLL's Pin
GriffinPeter5-Nov-08 22:47
memberGriffinPeter5-Nov-08 22:47 
Generalvery handy Pin
ba00214-Nov-08 0:30
memberba00214-Nov-08 0:30 
GeneralGood one Pin
surajfrommumbai2-Nov-08 21:16
membersurajfrommumbai2-Nov-08 21:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170525.1 | Last Updated 8 Jul 2011
Article Copyright 2008 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid