I tried by installing dotnet8 and changing the VintagestoryServer.runtimeconfig.json to use version 8, but it looks like it tries using some 32bit libraries, I tried searching for 'kernel32.dll' on my linux server running a server, but couldn't find the file? Heres the error from running it:
I also saw in another post (Linux distros/configurations under which VS is known to run) that openBSD has the same issue by CaffinatedCoder
Vintagestory version 1.20.5
#dotnet VintagestoryServer.dll --dataPath "/var/vintagestory/data"
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'kernel32.dll' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Cannot open "/home/vintagestory/server/kernel32.dll.so"
Cannot open "/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.6/kernel32.dll.so"
Shared object "kernel32.dll.so" not found, required by "dotnet"
Cannot open "/home/vintagestory/server/libkernel32.dll.so"
Cannot open "/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.6/libkernel32.dll.so"
Shared object "libkernel32.dll.so" not found, required by "dotnet"
Cannot open "/home/vintagestory/server/kernel32.dll"
Cannot open "/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.6/kernel32.dll"
Shared object "kernel32.dll" not found, required by "dotnet"
Cannot open "/home/vintagestory/server/libkernel32.dll"
Cannot open "/usr/local/dotnet/shared/Microsoft.NETCore.App/8.0.6/libkernel32.dll"
Shared object "libkernel32.dll" not found, required by "dotnet"
at ConsoleWindowUtil.NativeFunctions.GetStdHandle(Int32 nStdHandle)
at ConsoleWindowUtil.QuickEditMode(Boolean Enable) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Server\ConsoleWindowUtil.cs:line 49
at Vintagestory.Server.ServerProgram.Main(String[] args) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryLib\Server\ServerProgram.cs:line 31
at Vintagestory.ServerLinux.Main(String[] args) in C:\Users\Tyron\Documents\vintagestory\game\VintagestoryServer\Linux\ServerLinux.cs:line 9
Abort trap (core dumped
If you want to run it on FreeBSD now, I would look into using the Linux Compatibility layer