Alex & Access

January 15, 2011

How to compile ASP.NET site into one DLL

Filed under: ASP.NET — access @ 8:22 am

Never did it before, I thought it would be quite easy, with one click, but appears that there is no such functionality in Visual Studio (unless I missed it?). Fortunately, Microsoft made Visual Studio Web Deployment Projects, which make this part of life easier! Here the steps:

1. Download and install Visual Studio Web Deployment Projects:



2. Open Visual Studio, open your web site, as you normally do

3. Run menu Build -"Add Web Deployment Project"

4. Put the name you like, set location to desired folder

5. Right-click on just created project, Property pages, in output assemblies make sure that "Merge all outputs to a single assembly" selected

6. While deployment project selected in Solution explorer – go to menu Build and run Build <deployment project name>

7. Wait some time while it compiles, then check content of deployment project folder

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: