【发布时间】:2016-03-16 11:53:31
【问题描述】:
我正在尝试从这里安装 Microsoft.Experimental.IO 库:https://www.nuget.org/packages/Microsoft.Experimental.IO/1.0.0 在 Windows 10 上使用 Powershell - Install-Package。
我添加了 nuget.org 存储库,当我使用命令“find-package -contains experimental”时,Powershell 找到了包,但是当我尝试安装它时,我收到以下错误.
install-package Microsoft.Experimental.IO -verbose
VERBOSE: Skipping package provider provider 'NuGet'-- missing required option 'Destination'
VERBOSE: Skipping package provider provider 'NuGet'-- missing required option 'Destination'
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
install-package : No match was found for the specified search criteria and package name 'Microsoft.Experimental.IO'.
At line:1 char:1
+ install-package Microsoft.Experimental.IO -verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
如何解决这个问题并安装软件包?
【问题讨论】:
标签: powershell installation nuget-package oneget