4

パッケージマネージャーコンソールで「List-Package」を実行しようとしましたが、Nuget パッケージで次のエラーが発生しました。

The term 'List-Package' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
 verify that the path is correct and try again.

At line:1 char:13
+ List-Package <<<< 
    + CategoryInfo          : ObjectNotFound: (List-Package:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

get-help Nuget と入力して、使用可能なすべての Nuget コマンドを表示しましたが、結果に「List-Package」が表示されませんでした。

List-PackageNuget の最新バージョンでコマンドがサポートされなくなったため、このエラーが発生 していますか? Get-package list-package代わりにコマンドを使用する必要があるかもしれませんList-Package

このエラーの原因は何ですか?

4

1 に答える 1

4

List-Packageはコマンド名が正しくありません。

Get-Packageコマンドを使用する必要があります

docs.nuget.org で詳細を確認してください

于 2011-11-21T18:28:54.527 に答える