mono / VulkanSharp

Open source .NET binding for the Vulkan API
MIT License
538 stars 61 forks source link

Netcore support #49

Open tdaniel22 opened 8 years ago

tdaniel22 commented 8 years ago

I am not sure this can be done, but is there any plan to make the NuGet package compatible with NETCore apps?

Currently, trying to dotnet restore a project referencing the VulkanSharp NuGet package gives the following output:

Package VulkanSharp 0.1.7 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package VulkanSharp 0.1.7 supports:
      - monoandroid10 (MonoAndroid,Version=v1.0)
      - net452 (.NETFramework,Version=v4.5.2)
      - portable-net45+win8 (.NETPortable,Version=v0.0,Profile=Profile7)
      - win8 (Windows,Version=v8.0)
migueldeicaza commented 8 years ago

Yes, we should.

But we need NuGet to get comprehensive support for multiple platforms:

See issue:

https://github.com/NuGet/Home/issues/3114

mellinoe commented 8 years ago

For what it's worth, you can already use this in a .NET Core app, since PCL's are supported. You just need to add an "imports" statement to your project for the PCL profile. Also, since there aren't any bundled native dependencies in here, a nuget package with support for multiple platforms shouldn't be very difficult to produce. I think https://github.com/NuGet/Home/issues/3114 is more relevant for packages that want to bundle native assets.