Bash script and patches for building dotNET for FreeBSD under Linux
Currently working for: v6.0.0RTM v6.0.100-rtm.21527.11 and older (check commits if you want to build old versions)
You don't need / want SDK builds in Azure DevOPS
or
You are allergic to YAML
run as root/sudo:
- setup.sh
- build.sh
- (optional) gather_nuget.sh
For just running it please look here:
For building code, you will need:
- either the tarball or zip from
./installer/artifacts/packages/Release/Shipping/
- from runtime (also found in
./nuget/
):- Microsoft.NETCore.App.Host.freebsd-x64.VERSION.nupkg
- Microsoft.NETCore.App.Runtime.freebsd-x64.VERSION.nupkg
- from ASPNetCore (also found in
./nuget/
):- Microsoft.AspNetCore.App.Runtime.freebsd-x64.VERSION.nupkg
For building dotNET under FreeBSD natively:
- either the tarball or zip from
./installer/artifacts/packages/Release/Shipping/
- the contents of
./nuget/
- numerous other patches not covered here
MAYBE!
Microsoft does not have RID support for FreeBSD in its SDK. You must manually patch this in! Adjust path as needed.
BSD sed
: sed -i.ORI 's/osx-x64/osx-x64;freebsd-x64/' ../sdk/SDKVERSIONNUMBER/Microsoft.NETCoreSdk.BundledVersions.props
GNU sed
: sed -i 's/osx-x64/osx-x64;freebsd-x64/' ../sdk/SDKVERSIONNUMBER/Microsoft.NETCoreSdk.BundledVersions.props
You will also need these NuGet packages produced by this repo or the Azure version repo:
- Microsoft.NETCore.App.Host.freebsd-x64.VERSION.nupkg
- Microsoft.NETCore.App.Runtime.freebsd-x64.VERSION.nupkg
- Microsoft.AspNetCore.App.Runtime.freebsd-x64.VERSION.nupkg
Yes! Please see /~https://github.com/Servarr/dotnet-bsd
Yes! Also covered by the above!
I also try and publish it here too, open a ticket if I am more than a few days behind an official release.