简体   繁体   English

预编译的asp.net网站出现错误

[英]precompiled asp.net website give an error

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. 我有一个ASP.Net网站,因为它是一个网站,在发布网站后,bin中每个aspx.cs文件都有单独的dll文件。因此,如果我们要更改实时环境中的任何内容,则需要再次发布整个网站。尝试替换特定的页面dll,然后它给我一个error.so无法找到方法,我只希望它仅使用应用程序名称(如所有.cs文件的aaaa.dll)构建一个dll。是否有任何方法可以实现。这是一个很大的项目,所以如果我想从网站上制作Web应用程序,那么这会让我付出高昂的成本。所以,如果有其他方法,那对我来说还是很好的,或者我可以如何从我的网站制作单个dll?欢迎。 Thnaks. 谢谢。

If you go to File Publish Options there are many settings available under the "Precompile during publishing" option: 如果转到“ File Publish Options ,则“发布期间预编译”选项下有许多可用设置:

在此处输入图片说明

在此处输入图片说明

If you choose "Merge all outputs to a single assembly" it'll create a single assembly as you are asking. 如果选择“将所有输出合并到单个装配件中”,它将按您的要求创建一个单个装配件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM