Or,Support for FreeBSD · Issue #14537 · dotnet/runtime
Updated proposal from 2017/9 Proposal (by @karelz - https://github.com/dotnet/corefx/issues/1626#issuecomment-329840518) will be updated in top-post based on further discussion and proposal changes...github.com
Landing! <https://www.freshports.org/lang/dotnet/#packages>
Code:root@mowa219-gjp4-zbook-freebsd:~ # pkg install --fetch-only --quiet --yes lang/dotnet root@mowa219-gjp4-zbook-freebsd:~ # pkg install --no-repo-update lang/dotnet Checking integrity... done (0 conflicting) The following 2 package(s) will be affected (of 0 checked): New packages to be INSTALLED: compat13x-amd64: 13.2.1302001.20231227 [FreeBSD-ports] dotnet: 8.0.0 [FreeBSD-ports] Number of packages to be installed: 2 The process will require 472 MiB more space. Proceed with this action? [y/N]: y [1/2] Installing compat13x-amd64-13.2.1302001.20231227... [1/2] Extracting compat13x-amd64-13.2.1302001.20231227: 100% [2/2] Installing dotnet-8.0.0... [2/2] Extracting dotnet-8.0.0: 100% root@mowa219-gjp4-zbook-freebsd:~ # date ; uname -aKU Tue Feb 6 07:49:24 GMT 2024 FreeBSD mowa219-gjp4-zbook-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT #2 main-n267824-0dd5a5603e7a-dirty: Sun Jan 28 17:40:54 GMT 2024 grahamperrin@mowa219-gjp4-zbook-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1500012 1500012 root@mowa219-gjp4-zbook-freebsd:~ # nano /usr/local/etc/pkg/repos/FreeBSD-base.conf root@mowa219-gjp4-zbook-freebsd:~ # pkg -vv | grep -e url -e enabled -e priority url : "http://pkg0.fra.freebsd.org/FreeBSD:15:amd64/latest", enabled : yes, priority : 2, url : "pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/base_latest", enabled : yes, priority : 0, url : "file:///usr/local/poudriere/data/packages/main-default", enabled : yes, priority : 3 root@mowa219-gjp4-zbook-freebsd:~ #
Now. What to do with it?
I'm quite clueless, but something at the back of my mind (distant memory) says, Microsoft OneDrive or Teams.
dotnet tool install --global dotnet-ef
should result in the command dotnet ef --version
becoming available, but it doesn't work. You can confirm installation by running the first command again, it will tell you dotnet-ef version 8 has been installed, but the command doesn't work.As explained in the last section of this comment [1], yes it doesn't work yet and requires more cooperation from upstreamI have installed dotnet using the port and have it working, however global tool installs don't appear to be.
This problem is manageable. Just like we have several LLVM's in Ports, we can have several .NET's.Short story long, if a FreeBSD machine is hosting an application targeting version 8.0 with the lang/dotnet package, and then later on down the line lang/dotnet is upgraded by pkg to dotnet SDK 9.0, it may cause issues with that application.
Perfect, thanks!As explained in the last section of this comment [1], yes it doesn't work yet and requires more cooperation from upstream
[1] https://github.com/dotnet/runtime/issues/14537#issuecomment-1949634274
This problem is manageable. Just like we have several LLVM's in Ports, we can have several .NET's.