sec / dotnet-core-freebsd-source-build

Collection of script to build .NET Core under FreeBSD OS (with binary releases)
MIT License
53 stars 4 forks source link

Build .NET Core 8 under FreeBSD

New News (2024)

Old news (out-dated, but still some valid points)

Usage

  1. Run as root install_tools.sh - make sure to mount all needed things (add them to /etc/fstab, then mount -a)
  2. init.sh
  3. build_runtime.sh - add -v d inside if it will fail with SEHExceptions...
  4. build_aspnetcore.sh
  5. build_installer.sh - this one can fail with downloaing some things, copy URL and try to manualy fetch it into installer/artifacts/obj/redist/Release/downloads/
  6. Check installer/artifacts/packages/Release/Shipping/ or
  7. gather_output.sh will create one archive with everything you should need on target system
  8. clean.sh if you want to save disk space after use

Extra info

Requirments

  1. Working SDK for FreeBSD
  2. Tested under FreeBSD 13 and 14
  3. 8GB+ of RAM recommended (with 4GB I saw some parts crashing)
  4. To run SDK and/or apps pkg install libunwind icu libinotify should be enough on another box, maybe openssl too
  5. Under 14 also pkg install misc/compat13x might be needed if using builds directly

Support

Ready builds, credits, etc