question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET Core support on Linux

See original GitHub issue

Currently VulkanCore works on Linux systems when run under Mono. Running under .NET Core does not work because there is no elegant way to forward Platform Invoke calls from vulkan-1.dll to vulkan.so.

https://github.com/dotnet/coreclr/issues/930

It shouldn’t be too big of an issue at the moment since Xamarin and more popular Linux .NET GUI systems are all still Mono based.

Possible workaround to support .NET Core on Linux would be to duplicate all the Platform Invoke methods (DllImport) to include both vulkan-1.dll and vulkan.so variants and choose appropriate method call at runtime based on current platform. The downside is that it adds a lot of boilerplate to the source and potentially adds a minor performance cost.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
FacticiusVircommented, Sep 11, 2017

It’s such a horrible workaround, but hey, if they can’t get organised about DllMap…

0reactions
discosultancommented, Sep 11, 2017

Another potential solution which may allow the usage of DllImport in a cross-platform manner: https://github.com/dotnet/coreclr/issues/930#issuecomment-328542896

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install .NET on Linux distributions
Best effort support is offered from Microsoft when downloaded from elsewhere. You can open issues at dotnet/core if you run into problems.
Read more >
Install the .NET SDK or the .NET Runtime on Ubuntu
NET on Ubuntu. The Microsoft package repository contains every version of .NET that is currently, or was previously, supported on Ubuntu.
Read more >
Hello World .NET Core On Linux
.NET Core is compatible with Ubuntu.This article describes how to install .NET Core on Ubuntu. When a version of Ubuntu is no longer...
Read more >
How To Deploy .Net Core Application On Linux
Step 1 - Publish your .Net Core application · Right Click on your project · Click on publish · Now create a new...
Read more >
linux-support.md - dotnet/core
NET Support and Compatibility for Linux Distributions .NET is supported by Microsoft and by various commercial vendors and the community on multiple Linux...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found