ASP.Net MVC 2 - 将所有输出合并到单个程序集中

发布于 2024-09-26 16:42:09 字数 265 浏览 0 评论 0原文

我的解决方案中有一个 Web 部署项目。该解决方案由 MVC2 应用程序和另一个类库组成。

在 Web 部署项目属性中,我勾选了将所有输出合并到单个程序集选项,并为其指定了名称。

当我查看 bin 文件夹时,我拥有 MVC 应用程序中的所有参考 DLL、带有我的 MVC 项目名称的 DLL,然后是我在选择“将所有输出合并到单个程序集”选项时给出的名称的 DLL。

我想象这个选项会创建 1 个 DLL,而不是所有 DLL 加上另一个。

有什么想法吗?

I have a Web Deployment Project in my solution. The solution consists of the MVC2 App and another Class Library.

In the Web Deployment Project properties I have the Merge all outputs to a single assembly option ticked and I have given it a name.

When I look in the bin folder I have all my reference DLL's from my MVC app, a DLL with the name of my MVC project and then a DLL by then name I gave it when choosing the Merge all outputs to a single assembly option.

I imagined this option would create 1 DLL not all DLL's plus another one.

Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

星軌x 2024-10-03 16:42:09

正如文档所述:此选项合并来自编译成单个程序集。此设置相当于 aspnet_merge.exe 命令的 -o assemblyname 选项。请记住,Web 部署项目允许您预编译 Web 应用程序。这是为了避免对不同的 aspx 页面使用多个临时程序集,这对于网站而不是 Web 应用程序来说更为常见。在任何情况下,这都不会与您在站点中引用的第三方程序集(例如类库)合并。

As the documentation states it: this option merges all the output assemblies from the compiler into a single assembly. This setting is equivalent to the -o assemblyname option of the aspnet_merge.exe command. Remember that web deployment project allows you to pre-compiles a web application. This is to avoid having multiple temporary assemblies for the different aspx pages which is more common to web sites and not web applications. This doesn't in any case merge with third party assemblies you are referencing in your site like class libraries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文