Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

compile dll to work in other languages

Tags:

c#

dll

Is it possible to compile c# dll in a way that it can be imported in different programming languages or does it work only with visual studio projects?

like image 341
user2320462 Avatar asked Dec 06 '25 20:12

user2320462


1 Answers

The [ComVisible] attribute allows C# code to be used in practically any language that can run on Windows. COM support in a language runtime was pretty mandatory to give a language a chance to be adopted on Windows. You'd of course use whatever tooling is available for the language, it doesn't require VS.

like image 171
Hans Passant Avatar answered Dec 09 '25 10:12

Hans Passant



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!