あるSEのつぶやき・改

ITやシステム開発などの技術に関する話題を、取り上げたりしています。

How to fix No executable found matching command "dotnet-install"

.NET Core 環境で下記コマンドを実行したら、以下のようなエラーがでました。

$ dotnet install tool dotnet-dev-certs -g --version 2.1.1
コマンド "dotnet-install" に一致する実行可能ファイルが見つかりません
(English:No executable found matching command "dotnet-install")

これは下記のように、dotnet install tool -> dotnet tool install に 変更したことが原因の模様。

Before the release of 2.1.0 SDK - the one that introduce the tool feature - the dotnet install tool command was changed to dotnet tool install. https://stackoverflow.com/questions/50370089/how-to-fix-the-error-no-executable-found-matching-command-dotnet-install

下記のコマンドでOKになりました。(It’s ok bellow command.)

$ dotnet tool install dotnet-dev-certs -g --version 2.1.1