dotnet/sdk

PrintAddPathInstructionIfPathDoesNotExist should be more visible

wli3 opened this issue · 1 comments

wli3 commented

The current "add to path instruction" is not visible from normal successful output.

0xced commented

How about implementing my suggestion instead of letting the burden of tweaking the PATH on the user?

Have you considered simply creating the /etc/paths.d/dotnet-cli-tools file with /Users/username/.dotnet/tools (with the current user name) instead of ~/.dotnet/tools?

Pros:

  • Works on all shells (bash, zsh, etc.)
  • No need to print instructions on how to make cli tools available for your shell, works out of the box

Cons:

  • Only works for the user who installed the .NET Core SDK

In my opinion, the pros largely outweight the cons. Not having .NET cli tools work out of the box is a shame.