Forum Discussion
famadorian
Jan 05, 2023Copper Contributor
Find-Package | Install-Package (local feed)
I have setup a local feed and I want to install packages from it, from the command line
Find-Package -Name "*hukarz*" -Source C:\feed | Install-Package
I get this error:
Install-Package : Unable to resolve package reference ''. At line:1 char:47 + Find-Package -Name "*core*" -Source C:\feed | Install-Package + ~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: ($UGFja2FnZSBzb3...4x\QzpcZmVlZA==:String) [Install-Package], Exception + FullyQualifiedErrorId : UnableToResolvePackage,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Should this command be able to install packages from a local feed?
The feed is also correctly registered
dotnet nuget list source .. 4. Package source 1 [Enabled] c:\feed
Installing from inside of Visual Studio works fine.
1 Reply
Sort By
- LanHuangFormer Employee
Hi famadorian,
Thanks for posting your issue here.
However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang