Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet 3.1.414 installs on OSX, 3.1.415 does not install correctly #22516

Open
danwalmsley opened this issue Nov 9, 2021 · 5 comments
Open
Milestone

Comments

@danwalmsley
Copy link

danwalmsley commented Nov 9, 2021

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
@dotnet-issue-labeler
Copy link

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.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Nov 9, 2021
@danwalmsley
Copy link
Author

5.0.403 is also broken.

@chunghakngor
Copy link

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/dotnet to remove the current symbolic link to dotnet if it current exists
  • ln -s /usr/local/share/dotnet/x64/dotnet /usr/local/bin/dotnet to 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

@chunghakngor
Copy link

You can confirm the install location by checking the log files under /etc/dotnet/ as shown below

image

@vitek-karas
Copy link
Member

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.

@dsplaisted dsplaisted removed the untriaged Request triage from a team member label Dec 8, 2021
@dsplaisted dsplaisted removed their assignment Dec 8, 2021
@dsplaisted dsplaisted added this to the Discussion milestone Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants