kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

Add .net standard 2.1 in target frameworks #86

Closed cbovar closed 4 years ago

cbovar commented 4 years ago

Hi!

kunzmi commented 4 years ago

Hi,

the problem with netstandard2.1 is, that it doesn't support NativeLibrary.SetDllImportResolver() which I use to switch native library names on runtime for Linux. So of course one could compile for .netstandard2.1, but then it wouldn't run on Linux (at least not out of the box). So in my opinion, with good old .net Framework 4 and .net core3.x on windows side and .net core3.x on Linux, one should have any possible use case, or not?

cbovar commented 4 years ago

Ok, I understand.

My use case is:
(.net core app or .net framework app) --> .net standard library --> managed cuda

Some ideas:

kunzmi commented 4 years ago

Well, there's even no need for a new branch, all you need is just compiling managedCuda yourself for .netstandard. I won't update the nuget packages for that because that's quite some work given the number of packages for the different libraries and I tend to mess things up doing that (I know I could automatise things more...). The future is pure .netCore, so just by waiting a bit the problem will be gone :)

cbovar commented 4 years ago

Alright. .NET 5 should be out later this year, not so long to wait :)