简体   繁体   English

编译DLL以使用其他语言

[英]compile dll to work in other languages

是否可以以可以使用不同编程语言导入的方式编译c#dll,或者它是否仅适用于visual studio项目?

It will work with any .Net language (VB.Net, F#, IronPython etc). 它适用于任何.Net语言(VB.Net,F#,IronPython等)。 You don't need Visual Studio. 您不需要Visual Studio。 You can use other IDEs like SharpDevelop, or even your favourite text editor plus a command shell to compile your code. 您可以使用其他IDE,如SharpDevelop,甚至您喜欢的文本编辑器和命令shell来编译代码。

There are also interop possibilities with non .Net languages via bridging components like this one for java: 通过桥接像java这样的组件,还可以与非.Net语言进行互操作:

http://www.jnbridge.com/ http://www.jnbridge.com/

The [ComVisible] attribute allows C# code to be used in practically any language that can run on Windows. [ComVisible]属性允许C#代码几乎可以在任何可以在Windows上运行的语言中使用。 COM support in a language runtime was pretty mandatory to give a language a chance to be adopted on Windows. 语言运行时的COM支持非常强制要求语言在Windows上被采用。 You'd of course use whatever tooling is available for the language, it doesn't require VS. 你当然会使用该语言可用的任何工具,它不需要VS.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM