Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Revisions
 
Go to top

Automating Compilation for VS Web Developer 2008 Express edition

, 2 Nov 2008
Rate this:
Please Sign up or sign in to vote.
Automating Compilation for VS Web Developer 2008 Express edition
This is an old version of the currently published article.
Title:       Automating Compilation for VS Web Developer 2008 Express edition 
Author:      Shivprasad Koirala 
Email:       shiv_koirala@yahoo.com 
Level</a />:       Beginner
Description: Automating Compilation for VS Web Developer 2008 Express edition

Automating Compilation for VS Web Developer 2008 Express edition


 

Introduction
 

Express edition are downsized free IDE provided by Microsoft, so that developers and experiment to feel how the enterprise edition will look like. One of the products provided in the express edition suite is the web developer 2008 express edition. VS web developer edition helps us to make web application in .NET. One of the big drawbacks of VS web developer express edition is that it helps to debug but does not compile the ASPX pages. In other words no DLL is generated for the ASPX pages. This tutorial will discuss how we can use the aspnet_compiler.exe to generate DLL for web projects developed in VS 2008 web developer express edition.

For past some days I have been writing and recording videos in design patterns, UML , FPA , Enterprise blocks and lot you watch the videos at http://www.questpond.com 

You can download my 400 .NET FAQ EBook from http://www.questpond.com/SampleDotNetInterviewQuestionBook.zip 
 

aspnet_compiler.exe for rescue
 

As said previously VS Web developer does not compile DLL for ASPX pages. We can achieve this by using the aspnet_compiler.exe. aspnet_compiler.exe is located in the framework directory. You can get the aspnet_compiler.exe in Windows\Microsoft.NET\Framework\v2.0.50727 directory. You can download the 2.0 framework from http://www.microsoft.com/downloads/details.aspx?familyid=fe6f2099-b7b4-4f47-a244-c96d69c35dec&displaylang=en 

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

Parameter

Description

-?

Prints a description of all parameters.

-v

Specifies the path that follows is a virtual path.

-p

The physical path of the application to compile.

-u

Specifies the compiled application can be updated.

-c

Causes 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 aspnet_compiler.exe utility in the external tools of the IDE. So click on tools  external tools and you will be shown a 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 provides where the ASP.NET DLL should be sent. We have given the directory name as ‘FullyCompiled’. The two dots before the directory name suggests that this folder should be in the web directory. So if you web directory is in “c:\Shiv” , then the DLL’s will be compiled in “C:\Shiv\FullyCompiled”.
 

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

You will get a compile button in the tool menu as shown below.


 

So HIT it and you will see compiled DLL of your ASPX pages in the “FullyCompiled” folder.

License

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

Share

About the Author

Shivprasad koirala
Architect http://www.questpond.com
India India

I am a Microsoft MVP for ASP/ASP.NET and currently a CEO of a small
E-learning company in India. We are very much active in making training videos ,
writing books and corporate trainings. Do visit my site for 
.NET, C# , design pattern , WCF , Silverlight
, LINQ , ASP.NET , ADO.NET , Sharepoint , UML , SQL Server  training 
and Interview questions and answers


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 PinmemberGriffinPeter4-Nov-08 4:42 
GeneralRe: My copy of VWD Builds DLL's PinmemberShivprasad koirala5-Nov-08 22:12 
GeneralRe: My copy of VWD Builds DLL's PinmemberGriffinPeter5-Nov-08 22:47 
Generalvery handy Pinmemberba00214-Nov-08 0:30 
GeneralGood one Pinmembersurajfrommumbai2-Nov-08 21:16 

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

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

| Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 3 Nov 2008
Article Copyright 2008 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid