precompiled asp.net website give an error

1.5k Views Asked by At

I have one ASP.Net website.As its a website there is separate dll file in bin for each aspx.cs file after publishing the website.So if we want to change anything on live environment we again need to publish whole site.If I try to replace specific page dll then it give me an error.so not able to find out way I just want it build only one dll with application name like aaaa.dll of all .cs file.Is there any way to make it possible.Its a big project so if I want to make web application from website then it make me cost to much.so if there is any other way then it will be fine for me or how I can make single dll form my website?Any suggestion is welcome. Thnaks.

1

There are 1 best solutions below

4
hardkoded On

If you go to File Publish Options there are many settings available under the "Precompile during publishing" option:

enter image description here

enter image description here

If you choose "Merge all outputs to a single assembly" it'll create a single assembly as you are asking.