asp.netpublishing-site

publish asp.net webapplication in single files


I have an ASP.NET WebApplication (not Website) that was written with C#.

I want to publish and deploy this application for more than 50 sites in my server. I would prefer to make some dlls and put them in GAC of my server so all sites will use dlls from GAC and then I can update all my sites just with replacing some dlls in GAC.

When I publish my application I get a single dll for all .cs files but all .aspx files remain. I want to merge .aspx files to single assembly too.

Is there any way?or any other idea for my case?


Solution

  • in your web project properties:

    package/publish web

    check - precompile this application before publishing

    advanced - merge all output to a single assembly