Unable to run global tools in PowerShell running on macOS
See original GitHub issueI tried to execute a global tool from PowerShell running on macOS and the tool was not located. When I run dotnet tool list --global
it does show up. When I exit out of PowerShell, and get back into a normal bash prompt, the global tool works fine.
macOS version = 10.14.2
Here are the runtime/sdks that I have installed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Installing PowerShell on macOS
There are several ways to install PowerShell on macOS. Choose one of the following methods: ... dotnet tool install --global PowerShell.
Read more >Troubleshoot .NET tool usage issues
Discover the common issues when running .NET tools and possible solutions.
Read more >dotnet tool install command - .NET CLI
To install a global tool in a custom location, use the --tool-path option. To install a local tool, omit the --global and --tool-path ......
Read more >Introducing PowerShell as .NET Global Tool
NET Global Tool is a special NuGet package that contains a console application. A .NET Core application can be developed for various platforms ......
Read more >NET tools - .NET CLI
How to install, use, update, and remove .NET tools. Covers global tools, tool-path tools, and local tools.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wil3 yes, that looks like it is the issue. I have worked around it by appending the full path at the end.
It is due to above reason, the platform constrain (mac’s path_helper does not expend
~
). The best we could do is to print instruction to let the user append path.