This is a really weird thing that happens to me now and then. When using visual studio on mac and I use the Nuget Package manager console, sometimes it looses access to dotnet. Then I start pocking around and somehow it fixes again (it can take a lot of time).
The weird thing is that dotnet is installed, never was moved and I can run it in Terminal without any location. So, it is added to the Path.
Has anybody suffered from this problem? Is there any way to fix that?
I had the same issue. It happens randomly. Lost a couple of hours from my life until I found a workaround that solves the issue.
I am using:
Example command:
A couple of minutes ago realized that by cleaning the project the issue goes away.
Then when running again the command in NuGet PM it is executed without any issue.
The issue was also posted to the developer community web page, but was soon closed without any resolution: https://developercommunity.visualstudio.com/content/problem/913964/dotnet-the-term-dotnet-is-not-recognized-as-the-na.html I am about to reconsider this issue. Hope they will come up with a fix.