ASP.NET WebForms的部署 - 设置编译\\ bin目录下的DLL名称 [英] ASP.NET WebForms Deployment - Setting the compiled \bin directory DLL names

查看:91
本文介绍了ASP.NET WebForms的部署 - 设置编译\\ bin目录下的DLL名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我敢肯定,这是简单的,但我不能完全了解如何做到这一点在Visual Studio中。我怎么可以在\\ bin目录中指定的DLL名称时,应用程序部署 - 选项甚至与使用固定命名和单页组件检查,但仍追加乱字来DLL名称。

I'm sure this is simple but I can't quite find out how to do it in Visual Studio. How can I specify the DLL names in the \bin directory when the application is deployed - even with "Use fixed naming and single page assemblies" option checked, it still appends "random" characters to the DLL name.

推荐答案

当您使用 -fixednames 选项, aspnet_compiler.exe 并不能使你的名字所产生的组件,或者能够产生只有一个或几个组件。

When you use the -fixednames option, aspnet_compiler.exe does not enable you to name the resulting assemblies, or to be able to produce just one or a few assemblies.

一个单独的名为合并实用程序 aspnet_merge.exe 使您能够合并和管理由编译器创建的组件。

A separate merge utility named aspnet_merge.exe enables you to combine and manage the assemblies created by the compiler.

合并工具,可以结合: -

The merge tool enables you to combine:-


  1. 在一个precompiled网站通过ASP.NET(不定制组件)生成到一个单一命名部件中的所有组件。

  2. 所有的Web UI内容程序集到一个单一命名的程序集。

  3. 的Web UI组件的内容转化为网站中的每个文件夹的程序集

参阅本文在MSDN上了解更多详细信息,你怎么能与合并工具来获取你的输出和它的命名更多的灵活性相结合的编译器。

Refer this article on MSDN for more details on how you can combine the compiler with the merge tool to get more flexibility for your output and its naming.

请注意:使用合并工具仍犯规让你明确地命名每个precompiled DLL,但高于1/3,给你更多的灵活性它所做的是基于期权

Note: Using the merge tool still doesnt allow you to explicitly name EACH precompiled dll but what it does is based on option 1 / 3 above, give you a lot more flexibility

这篇关于ASP.NET WebForms的部署 - 设置编译\\ bin目录下的DLL名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆