discosultan / VulkanCore

Vulkan 1.0 graphics and compute API bindings for .NET Standard
MIT License
168 stars 27 forks source link

Android samples not working #16

Open discosultan opened 6 years ago

discosultan commented 6 years ago

As was raised by @AdvKern in https://github.com/discosultan/VulkanCore/issues/5, none of the Android samples currently work. I've found two issues using the latest stable Visual Studio 2017 and Xamarin.Android tooling:

  1. NuGet packages which are targeted using the new .csproj PackageReference format will not get deployed to the device. A solution would be to revert back to using packages.config.

  2. Invoking unmanaged code raises InvalidProgramException with message "Invalid IL code". This seems to be appeared after Xamarin Mono 5.0 update which introduced Roslyn compiler. Reason unknown. Going to test latest preview tooling to see if it makes any difference.

WardBenjamin commented 6 years ago

Is this still true as of now?

discosultan commented 6 years ago

I think so. I never got to fix the issues. It's probably a good idea to test with latest Xamarin and update project files to follow same properties / package reference style as most recent Xamarin Android project template.