为什么使用 CSC.EXE 与 Devenv 时我的输出文件大小不同?

发布于 2024-07-27 16:02:34 字数 157 浏览 2 评论 0原文

我正在和 Nant 和 CSC 一起比赛。 我注意到,如果通过 CSC 和 nant 构建脚本编译,我的 dll 的调试版本为 140k。 但是,如果我在 Visual Studio 环境中构建调试版本,它的大小是 203k!? 然而,较小的 DLL 在主程序中似乎运行良好。 有任何想法吗?

I am playing with Nant and CSC. I notice that a debug version of my dll is 140k if compiled via CSC and nant build scripts. However if i build a debug version in the Visual Studio env, it is at 203k!? the smaller DLL DOES appear to work fine in the main program however. Any ideas?

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

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

发布评论

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

评论(1

回心转意 2024-08-03 16:02:34

这个问题已在这里得到解答:http://social.msdn.microsoft.com/Forums/en-ZA/csharpgeneral/thread/74db169a-e244-496e-ae97-8dfec18ff2e5

此外,VS在编译或“清理”时可能会添加一些内容“csc.exe

This question has been answered here: http://social.msdn.microsoft.com/Forums/en-ZA/csharpgeneral/thread/74db169a-e244-496e-ae97-8dfec18ff2e5

Also there may be some additions by VS when compiling nor to "clean" csc.exe

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