Closed sergey-fuflygin closed 3 months ago
Hi @sergey-fuflygin,
Thank you for contacting us!
According to the specified info, it looks like PATH
environment variables doesn't contain the required info to help with sdk resolution.
Please add path/usr/local/share/dotnet
to PATH
env variable and try again.
Hi @YuliiaKovalova,
Thank you for the quick response!
I added /usr/local/share/dotnet
to the PATH
environment variable as you suggested, and it resolved the issue. I’m no longer receiving any errors.
Here is the output of echo $PATH
:
sergey.fuflygin@sergey ~ % echo $PATH
/usr/local/share/dotnet:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet/sdk:/usr/local/share/dotnet/sdk/8.0.303/:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/usr/local/share/dotnet:~/.dotnet/tools:/usr/local/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/sergey.fuflygin/.dotnet/tools
Thanks again for your help!
@sergey-fuflygin do you remember how you installed the .NET SDK? All of our installers should be setting $PATH for you automatically, so failures like this make me a bit worried.
@baronfel I likely downloaded the installer from https://dotnet.microsoft.com/en-us/download/dotnet/8.0, but to be honest, I don’t remember the exact steps I took.
If you want me to try uninstalling it and installing it again, please share the recommended steps, and I will do that. I’m ready to investigate this issue deeper to help identify the root cause.
I am encountering an issue on my Mac M1 when calling
MSBuildLocator.RegisterDefaults()
. The following error is produced:dotnet --info
output is belowThe above causes .NET Upgrade Assistant to fail (comment).
Could you please guide me on resolving this issue or any additional troubleshooting steps? Your help would be greatly appreciated.