question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run global tools in PowerShell running on macOS

See original GitHub issue

I 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

global-tool

Here are the runtime/sdks that I have installed. image

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sayedihashimicommented, Jul 19, 2019

@wil3 yes, that looks like it is the issue. I have worked around it by appending the full path at the end.

0reactions
wli3commented, Jul 19, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found