Azure Powershell - 可以找到包但无法安装
Azure Powershell - Can find package but not install it
我正在尝试从我自己创建的 NuGet 包源安装包。
当我运行
Find-Package -Source "packageSourceName" -Credential $cred
我能够找到相应包源中列出的包。
然而当我运行
Install-Package -Name "packageName" -Credential $cred
我收到一条错误消息:
Install-Package : No match was found for the specified search criteria and package name 'packageName'.
Try Get-PackageSource to see all available registered package sources.
在命令中包含包源没有帮助。
包名当然不是真的"packageName".
有没有人遇到过这个问题?
我现在可以在控制台/PowerShell 终端中使用 nuget CLI 安装程序包:
使用
添加提要作为包源后
nuget.exe sources Add -Name "packageFeedName" -Source "https://packageFeedLink/nuget/v3/index.json"
我能够使用
安装包
nuget install packageName
我正在尝试从我自己创建的 NuGet 包源安装包。
当我运行
Find-Package -Source "packageSourceName" -Credential $cred
我能够找到相应包源中列出的包。
然而当我运行
Install-Package -Name "packageName" -Credential $cred
我收到一条错误消息:
Install-Package : No match was found for the specified search criteria and package name 'packageName'.
Try Get-PackageSource to see all available registered package sources.
在命令中包含包源没有帮助。
包名当然不是真的"packageName".
有没有人遇到过这个问题?
我现在可以在控制台/PowerShell 终端中使用 nuget CLI 安装程序包:
使用
添加提要作为包源后nuget.exe sources Add -Name "packageFeedName" -Source "https://packageFeedLink/nuget/v3/index.json"
我能够使用
安装包nuget install packageName