dotnet-core-freebsd-source-build
dotnet-core-freebsd-source-build copied to clipboard
Collection of script to build .NET Core under FreeBSD OS (with binary releases)
Build .NET Core 8 under FreeBSD
New News (2024)
- We how have community made port under FreeBSD ports for x64/amd64 and aarch64
/usr/ports/lang/dotnet/make installorpkg installwill get you up and running- to speed up port build, use
install_tools.shfirst, unless you like everything from source
Old news (out-dated, but still some valid points)
- Just a collection of script and patches put up into one place, to help getting automated builds.
- For other versions, check proper tag with that name (mostly out-dated and not updated).
- For my private nuget feed, check dotnet-freebsd-nuget-feed
Usage
- Run as root
install_tools.sh- make sure to mount all needed things (add them to /etc/fstab, then mount -a) init.shbuild_runtime.sh- add-v dinside if it will fail with SEHExceptions...build_aspnetcore.shbuild_installer.sh- this one can fail with downloaing some things, copy URL and try to manualy fetch it intoinstaller/artifacts/obj/redist/Release/downloads/- Check
installer/artifacts/packages/Release/Shipping/or gather_output.shwill create one archive with everything you should need on target systemclean.shif you want to save disk space after use
Extra info
- some steps can fail, some patches can fail to apply, mostly due to numbers, this needs to be handed by hand, as I don't update all the patches with every release
- sometime some step can fail, due to zombie dotnet processes left, simple
killall -9 dotnetwill do the trick - when building under jail,
mlockis required
Requirments
- Working SDK for FreeBSD
- Tested under FreeBSD 13 and 14
- 8GB+ of RAM recommended (with 4GB I saw some parts crashing)
- To run SDK and/or apps
pkg install libunwind icu libinotifyshould be enough on another box, maybeopenssltoo - Under
14alsopkg install misc/compat13xmight be needed if using builds directly
Support
- x64 - read
- arm64 - read
- nice summary from @Thefrank
Ready builds, credits, etc
- Check releases (issue me if someting's broken or missing)
- Crossbuild and native builds
- Azure pipeline