Silk.NET icon indicating copy to clipboard operation
Silk.NET copied to clipboard

FreeBSD support

Open ghost opened this issue 4 months ago • 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 <PackageReference Include="System.Runtime.Serialization.Formatters" Version="9.0.0-*" /> is missing for 9.0

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

ghost avatar Aug 24 '25 08:08 ghost

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.

Perksey avatar Sep 14 '25 14:09 Perksey