No executable found matching command “dotnet-tool”

后端 未结 2 779
萌比男神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:07

    The dotnet tool command is only installed with the release of .NET Core SDK version 2.1.300 and later. You need to update your SDK to make this command available.

    0 讨论(0)
  • 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"  }
    } 
    
    0 讨论(0)
提交回复
热议问题