Skip to content

FreeBSD runtime error #2473

@ghost

Description

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions