News, links, downloads, tips and tricks on Microsoft Access and related

About Me Search
Name:Alex Dybenko

Location:Moscow, Russia

Saturday, January 15, 2011

How to compile ASP.NET site into one DLL

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



Post a Comment

<< Home