Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Nuget.exe command CLI does not recognized

$
0
0

I would like to add feed to push my nuget package to Azure Devops as artifacts. I have followed all the steps that have been mentioned in the Microsoft docs to push my nuget package to Azure Devops. I have downloaded nuget.exe CLI and it is sit in the same folder in which i have generated/built my project nuget packages. However why m I getting the following error and i searched quite a bit everywhere but could not find any answer:-

Build nuget package and nuget.exe CLI folder path:-

C:\Users\Desktop\MyProjects\ProjectName> Under this folder I have following files   --nuget.exe    --AutoOnWeb.Messaging.Helpers.2.1.0.nupkg

Command to Execute(Add this feed):

Path: C:\Users\Desktop\MyProjects\ProjectName>        nuget.exe sources Add -Name "AutoShop.Messaging.Helpers" -Source "https://pkgs.dev.azure.com/HelpersLibrary/_packaging/AutoShop.Messaging.Helpers/nuget/v3/index.json"

Error:-

nuget.exe : The term 'nuget.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, orif a path was included, verify that the path is correct and try again.At line:1 char:1+ nuget.exe sources Add -Name "InfrastructureMessagingHelpers" -Source  ...+ ~~~~~~~~~+ CategoryInfo          : ObjectNotFound: (nuget.exe:String) [], CommandNotFoundException+ FullyQualifiedErrorId : CommandNotFoundException

I have downloaded and installed all required framework libraries.

Thanks,


Viewing all articles
Browse latest Browse all 3067

Trending Articles