upgrade-assistant: upgrade-assistant command not found after Mac install

Problem encountered on https://dotnet.microsoft.com/en-us/platform/upgrade-assistant/tutorial/install-upgrade-assistant Operating System: windows When running upgrade-assistant analyze, I get the error upgrade-assistant is not recognized as an internal or external command, operable program or batch file. However, when running dotnet tool install -g upgrade-assistant, I get the error Tool 'upgrade-assistant' is already installed. Please advise.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 2
  • Comments: 17 (8 by maintainers)

Most upvoted comments

You need to add ~/.dotnet/tools to your PATH environment (you probably want to edit ~/.zshrc to add the following line:

export PATH=$PATH:~/.dotnet/tools

Having the same issue.

I’ve tried to work around this with dotnet tool run upgrade-assistant but it did not lead to any success.

banditoth@Andrass-MacBook-Pro ~ % sudo dotnet tool update -g upgrade-assistant --ignore-failed-sources
/tmp/eda3c3ce-adaa-43c0-822c-db7e9c1ce402/restore.csproj : warning NU1801: Unable to load the service index for source https://pkgs.dev.azure.com/xxxxx/_packaging/xxxxxxx/nuget/v3/index.json.
Tool 'upgrade-assistant' was reinstalled with the latest stable version (version '0.4.355802').

banditoth@Andrass-MacBook-Pro ~ % upgrade-assistant
zsh: command not found: upgrade-assistant

banditoth@Andrass-MacBook-Pro ~ % dotnet tool run upgrade-assistant
Cannot find a tool in the manifest file that has a command named 'upgrade-assistant'.

@maddymontaquila Is there any update on this?

You need to add ~/.dotnet/tools to your PATH environment (you probably want to edit ~/.zshrc to add the following line:

export PATH=$PATH:~/.dotnet/tools

Thanks! This got the command to be recognized, but now I see this message when running the upgrade command: “This tool is not supported on non-Windows platforms due to dependencies on Visual Studio.”

Is this true, and is there a work around to use on mac? Not a huge issue if I have to do this on windows, but would prefer to do this on mac if possible.

Same issue found.

@kerryjiang Are you also on Mac?

Yes, on Mac.