I've taken over a web project. The project was developed in VS2005. It's a csproj .net solution. It's got a lot of precompiled dlls. I've got all the source code, and I want to make updates to the website. I'm using VWD2008 Express Edition.
How can I make changes to the source code and then recompile the DLLs... I'm totally stumped!
Automating Compilation for VS Web Developer 2008 Express edition
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/
Below are command line parameters commonly used with aspnet_compiler.exe utility.
Prints a description of all parameters.
Specifies the path that follows is a virtual path.
The physical path of the application to compile.
Specifies the compiled application can be updated.
Causes the compiled application to be fully rebuilt, overwriting any existing files.
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".