.NET 编译器输出

发布于 2024-07-26 11:29:42 字数 643 浏览 2 评论 0原文

我正在尝试解决源问题,并且正在尝试找出哪个版本是哪个。 我遇到的另一个问题是 .NET 编译器生成的输出非常难以理解并且有点令人沮丧。 在我的 bin 文件夹中,我有以下程序集:

AjaxControlToolkit.dll
AjaxControlToolkit.pdb
App_Code.compiled
App_Code.dll
App_global.asax.compiled
App_global.asax.dll
App_Web_1bovrrt_.dll
App_Web_cuytoyuc.dll
App_Web_gjpim9z2.dll
App_Web_k-homu1n.dll
App_Web_m_hnrikq.dll
App_Web_mqzd9_of.dll
App_Web_ogzfeeae.dll
App_Web_qa1j2ese.dll
App_Web_thkvu0ud.dll
App_Web_ztp4u54p.dll
log4net.dll
StoreProcedures.dll
StoreProcedures.pdb

我了解文件包含的大部分内容,因为 Reflector 是我的朋友。

我的问题是:有没有办法告诉编译器使用程序集的编译名称更加“英语”,或者甚至将每个页面放入它自己的程序集中? 或者这是一个白日梦?

干杯!

I'm attempting to resolve source problems and I'm attempting to figure out which version is which. The other problem I'm running into is the output the .NET compiler generates is very unintelligible and a little frustrating. In my bin folder i have the following assemblies:

AjaxControlToolkit.dll
AjaxControlToolkit.pdb
App_Code.compiled
App_Code.dll
App_global.asax.compiled
App_global.asax.dll
App_Web_1bovrrt_.dll
App_Web_cuytoyuc.dll
App_Web_gjpim9z2.dll
App_Web_k-homu1n.dll
App_Web_m_hnrikq.dll
App_Web_mqzd9_of.dll
App_Web_ogzfeeae.dll
App_Web_qa1j2ese.dll
App_Web_thkvu0ud.dll
App_Web_ztp4u54p.dll
log4net.dll
StoreProcedures.dll
StoreProcedures.pdb

I understand most of what the files contain because Reflector is my friend.

My question is: is there a way to tell the compiler to be a bit more "English" with the compiled names of assemblies, or even to put each page in it's own assembly? Or is that a pipe dream?

Cheers!

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

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

发布评论

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

评论(2

Smile简单爱 2024-08-02 11:29:42

你最好的选择是做一些事情。

  1. 确保该项目是一个Web应用程序,这样编译就干净得多。
  2. 当您发布网站时,删除所有现有文件,然后重新发布整个内容。 这样您就可以确保最新的 DLL 是唯一的。
  3. 您还可以使用固定名称标志(查看文章)来获取固定程序集名称。

Your best bet is to do a few things.

  1. Make sure that the project is a web application, the compiling is much cleaner that way.
  2. When you PUBLISH the site, delete all existing files, and re-publish the whole thing. This way you can ensure that the most current DLL's are the only ones out there.
  3. You can also use the FixedNames flag (See Article) to get a fixed assembly name.
羁拥 2024-08-02 11:29:42

由于动态编译只使用名称中的一些哈希值,我猜你不能。

但您也许可以通过预编译来实现您的目标。

Since dynamic compilation just uses some hashes in the name, my guess it that you cannot.

But you may be able to achieve your goal with precompilation.

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