dotnet 3.1.414 installs on OSX, 3.1.415 does not install correctly
Describe the bug
The latest 3.1.415 sdk installer does not produce a working installation on osx (m1).
I had to use the 3.1.414 installer to get a working system.
To Reproduce
remove all dotnets installed to get a clean system rm -rf /usr/share/dotnet
install the 3.1.414 installer.
dotnet --info
dotnet command not found
Exceptions (if any)
Further technical details
- Include the output of
dotnet --info - The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
5.0.403 is also broken.
I'll be assuming that you have installed 3.1.415 (x64) on an M1 Mac as I've done so earlier today.
From 3.1.415 & 5.0.403 onwards, they will be installed under /usr/local/share/dotnet/x64 and .NET 6 will be installed under /usr/local/share/dotnet this allows for native support for arm64 with x64 along side it.
If you wanna get it working as intended before, install the version that was released before November 2021.
If you want it to work with 3.1.415 & 5.0.403, you could run the following commands
rm /usr/local/bin/dotnetto remove the current symbolic link to dotnet if it current existsln -s /usr/local/share/dotnet/x64/dotnet /usr/local/bin/dotnetto create a new symbolic link to x64 dotnet
But you should also be aware that dotnet -a x64 will also work but I personally haven't gotten it to work myself.
You can refer to #22380 for more info
You can confirm the install location by checking the log files under /etc/dotnet/ as shown below

Only the arm64 SDKs are added to the "path". If you need to use x64 SDK you either need to change your environment or explicitly call /usr/local/share/dotnet/x64/dotnet.
Please note that .NET 6 SDK should be mostly backward compatible with 3.1 apps - that is you should be able to build a 3.1 app with a 6.0 SDK. It should work that you use the 6.0 arm64 SDK to build a 3.1 x64 app.
Most CLI commands which care have the -a arch option now to let you explicitly target a specific architecture. The only one missing right now is dotnet test - we're still working on it.
Due to lack of recent activity, this issue has been labeled as 'Stale'. It will be closed if no further activity occurs within 14 more days. Any new comment will remove the label.