How would one wrap a .Net Core lib for Ruby?


Is there a technique to wrap a .NET Core library as a Ruby Gem?

We’ve built some .NET Standard / .NET Core libraries and we are targeting multiple platforms (linux, macOS, windows). We have a need to wrap the final assembly in Ruby, so that we may expose this functionality to the Ruby community as well.

I’m asking if there are any known tools, patterns, etc. used for this scenario?

We would like to maintain the bulk of our library in the .NET code, but be able to ship this in a wrapper, of some kind, for Ruby too. (we are also going to look into doing this for other platforms like Python, but Ruby the first place we need to do it)

I posted this on stackoverflow as well:

.NET Foundation Website | Blog | Projects | Code of Conduct