在C Sharp中创建.lib文件而不是dll [英] Creating .lib file instead of dll in c sharp
本文介绍了在C Sharp中创建.lib文件而不是dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在C#中创建.lib文件而不是.dll?或者是否有将C#dll转换为lib的方法?期待您的支持.
谢谢,
Laje
Hi,
is it posssible to create a .lib file instead of .dll in C#? or if there is anyway to convert the c# dll to lib? Expecting ur support.
Thanks,
Laje
推荐答案
由于不同的编程模型,这没有任何意义.在本机(非托管)应用程序的开发中使用C#的整个问题并非微不足道.许多开发人员认为这是不可能的,因为C#编程中没有这样的机会.但是,CLI标准允许将托管方法从.NET程序集导出到非托管方法.有一种平滑的方法可以基于常规库的重新组装来开发此类库和任何.NET语言.有关更多详细信息,请阅读我关于以下主题的旧答案:在MFC中加载C#DLL [ ^ ].
-SA
It makes no sense due to very different programming models. The whole problem of using C# in development of native (unmanaged) applications is not trivial. Many developers thought is was impossible because such opportunity is not available in C# programming. However, CLI standard allows exporting of managed method from a .NET assembly to unmanaged. There is a smooth method of developing such libraries and any .NET language based on re-assembling of regular libraries. For further detail, please read my old Answer on the topic: loading C# DLL in MFC[^].
—SA
此 [ ^ ]可能会帮助您
This[^] might help you
这篇关于在C Sharp中创建.lib文件而不是dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文