Search code examples
c#.net-corerhelrhel6rhel5

.NET Core on RHEL 5 and RHEL 6


I developed a USB driver (CDC class) DLL for windows in .NET Looks like I need to develop the same driver in Linux as well. The target system is running RHEL 5 and above.

From the Microsoft documentation it is clear that on RHEL 7 and 8 I can leverage the .NET Core Is it possible to use .NET Core on RHEL 5 and RHEL 6.

https://learn.microsoft.com/en-us/dotnet/core/install/linux-rhel


Solution

  • .NET Core is not supported on RHEL 5 at all. Not by Red Hat and not by Microsoft. You can't run .NET applications there.

    .NET Core is supported on RHEL 6 by Microsoft, but there are some gotchas and installation isn't as easy as it could be. This document includes installation steps for .NET Core and its dependencies on RHEL 6.

    .NET Core is fully supported on RHEL 7 and RHEL 8, both by Microsoft and Red Hat.


    USB drivers are implemented very differently between Windows and Linux. Even ignoring older RHEL versions, do you have any idea if your driver will work on Linux at all? .NET Core on Linux, for example, doesn't support C/C++. Any P/Invoke calls you make to kernel32.dll for example, will not work on Linux either. Is your driver actually cross-platform?