Building .NET apps on FreeBSD
While trying to build Kavita to run in a FreeBSD jail, I ran into a minor snag with the native .NET port lang/dotnet
.
For Google: the .NET runtime identifier for FreeBSD 14 64-bit is freebsd.14-x64
. You can see the installed runtime packs here:
ls -l /usr/local/share/dotnet/packs/
total 4
drwxr-xr-x 3 root wheel 3 May 18 09:27 Microsoft.AspNetCore.App.Ref
drwxr-xr-x 3 root wheel 3 May 18 09:27 Microsoft.AspNetCore.App.Runtime.freebsd.14-x64
drwxr-xr-x 3 root wheel 3 May 18 09:27 Microsoft.NETCore.App.Host.freebsd.14-x64
drwxr-xr-x 3 root wheel 3 May 18 09:27 Microsoft.NETCore.App.Ref
drwxr-xr-x 3 root wheel 3 May 18 09:27 Microsoft.NETCore.App.Runtime.freebsd.14-x64
drwxr-xr-x 3 root wheel 3 May 18 09:27 NETStandard.Library.Ref
drwxr-xr-x 3 root wheel 3 May 18 09:27 runtime.freebsd.14-x64.Microsoft.DotNet.ILCompiler
I would assume this will soon become freebsd.15-x64
.