Nuget Package List Error

I tried to execute the โ€œList-Packageโ€ in the package manager console and get the following error in the Nuget package.

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 

I typed get-help Nuget to see all the available Nuget commands. But I could not see the "List-Package" as a result.

Does this error happen because the List-Package command is no longer supported in the latest version of Nuget? Maybe we need to use the Get-package list-package command instead of the List-Package

what causes this error?

+4
source share
1 answer

List-Package is an invalid command name.

You must use the Get-Package command

See more at docs.nuget.org

+4
source

Source: https://habr.com/ru/post/1382342/


All Articles