Skip to content

dotnet executable file not found in $PATH when installed through Jetbrains Rider #48423

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

Open
cfgiugliano opened this issue Apr 13, 2025 · 2 comments
Assignees
Labels
Area-Install untriaged Request triage from a team member

Comments

@cfgiugliano
Copy link

Describe the bug

I've installed Jetbrains Rider on macOS and it asked to take care of installing .NET SDK so I accepted. Once completed, Rider was able to build and run .NET projects but dotnet --info from terminal didn't return anything. Furthermore running an Aspire project ran all the projects except the dashboard:

failed to start a process {"Executable": {"name":"aspire-dashboard-hfyxpzxx"}, "Reconciliation": 5, "error": "exec: "dotnet": executable file not found in $PATH"} 

The executable was installed under /Users/example/.dotnet/

I've tried using dotnet-core-uninstall to remove it but both SDK and runtime weren't detected.

Manually deleting the directory and installing .NET using the package downloaded from dotnet website fixed it.

Further technical details

  • MacBook Pro M4 with macOS 15.4
  • JetBrains Rider 2024.3.7
  • SDK 9.0.200 (or 9.0.202, I'm not sure which was installed by Rider)
  • dotnet-core-uninstall 1.7.618124+6f834e098fd32238e670f2d52c58745cf4e39054
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Install untriaged Request triage from a team member labels Apr 13, 2025
@baronfel
Copy link
Member

Can you dump the contents of the integrated terminal in Rider after it installs the SDK? I'm especially interested in PATH and DOTNET_ROOT (if present) - those two are the main load-bearing variables.

If PATH/DOTNET_ROOT are changed/updated by Rider during a single Rider session, it's possible that it might be changing your shell profile correctly, but that you need to start a new terminal session to pick up those changes. That's a relatively common requirement.

@cfgiugliano
Copy link
Author

cfgiugliano commented Apr 14, 2025

It doesn't seem to output anything, It runs a background task which install .NET but I can't see any content in the terminal. I think they aren't set as even restarting Rider or the system doesn't change anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Install untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants