No executable found matching command “dotnet-tool”

后端 未结 2 778
萌比男神i
萌比男神i 2021-01-17 11:42

I\'m trying to install Fake from the official site with the following command (provided at the site):

dotnet tool install fake-cli -g

2条回答
  •  野的像风
    2021-01-17 12:08

    In addition to DavidG answer:

    To check .NET Core SDK versions installed run

    dotnet --info
    

    Even if the required SDK version is installed you may also need to switch to the required dotnet core SDK version by setting  sdk section in global.json as described in Switch between dotnet core SDK versions , e.g.

    {
       "sdk": { "version": "2.1.403"  }
    } 
    

提交回复
热议问题