dotnet/Silk.NET

FreeBSD support

Opened this issue · 1 comments

Summary

Unhandled exception. System.TypeInitializationException: The type initializer for 'Glib.Window' threw an exception.
 ---> System.PlatformNotSupportedException: Invalid/unsupported operating system.
   at Silk.NET.Core.Loader.SearchPathContainer.ThrowInvalidPlatform()
   at Silk.NET.Core.Loader.SearchPathContainer.GetLibraryNames()
   at Silk.NET.GLFW.Glfw.GetApi()

Steps to reproduce

  • Platform: FreeBSD
  • Framework Version: .NET 9.0.107 (from pkg install dotnet)
  • API: OpenGL
  • API Version: 3.3
  1. dotnet build anything that uses Silk.NET
  2. dotnet run

Comments

this does not account for OSPlatform.FreeBSD

add this to build/nuke/Silk.NET.NUKE.csproj, the is missing for 9.0

If you know how to fix this issue, please submit a pull request instead!

Hey there! Microsoft does not officially support FreeBSD for .NET, this is community-driven only. In a similar vain, we'd welcome PRs from the community to improve our support here.