编译成中间型 [英] Compile to Intermediate type

查看:157
本文介绍了编译成中间型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这对我来说是一个学习的。



编译到什么输出类型如何编译 C#类库中间文件,但未DLL ;它可以在其他项目中使用,而无需源代码,而不是将其传递给最终用户。



这是在Delphi / C / C实现++按我的知识。


解决方案

可以在其他项目中使用,而无需源代码,而不是将其传递给最终用户。




这听起来像你对我应该把它编译成一个DLL,但也许考虑的 ILMerge 作为构建/部署战略的一部分。坦率地说,很少有任何的的理由不只是出货的dll的没有的合并。



注意 CSC 确实的让你输出的是原始的模块,通过 /目标:模块(大概然后重新与 /加入AddModule 结合) - 但坦率地说,这将是一个真正的痛苦与合作


This is a learning for me.

Compile to What Output type or How to Compile a C# Class Library to an Intermediate File, but Not DLL; which can be used in other project without having source code and not passing it to End User.

This is achievable in Delphi/C/C++ as per my knowledge.

解决方案

which can be used in other project without having source code and not passing it to End User.

It sounds to me like you should compile it to a dll, but perhaps consider ILMerge as part of your build/deploy strategy. And frankly there is rarely any good reason not to simply ship the dll without merging.

Note that csc does allow you to output raw modules, via /target:module (presumably then re-combining with /addmodule) - but frankly that will be a real pain to work with.

这篇关于编译成中间型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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