我第一次尝试通过IDE中的“还原”按钮来还原NuGet包,但是得到了这样的信息:“在试图还原包时发生了错误: Unbale查找veriosn‘1.0.5400.37276-预释放包’的'Hyak.Generator‘。
我还尝试了使用以下命令安装软件包Microsoft.WindowsAzure.Management.Libraries -IncludePrerelease的PM控制台。可以找到此命令和其他指令-- 这里。 --该命令导致以下日志:
每个包裹都是由其所有者授权给你的。微软对第三方软件包不负责,也不授予任何许可证.有些包可能包含依赖项,这些依赖项由其他许可证管理。按照包源(feed) URL确定任何依赖项。 软件包管理器控制台主机版本2.8.50313.46 输入“get-help NuGet”以查看所有可用的NuGet命令。 PM> Install Microsoft.WindowsAzure.Management.Libraries -IncludePrerelease试图解决依赖关系'Microsoft.WindowsAzure.Common (≥1.3.0 &&≥;2.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Common.Dependencies (≥1.1.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management (≥2.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Compute (≥5.0.0)‘。试图解析依赖项'Microsoft.WindowsAzure.Management.MediaServices (≥2.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Monitoring (≥1.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Network (≥3.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Scheduler (≥3.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Sql (≥3.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.Storage (≥3.0.0)‘。试图解析依赖关系'Microsoft.WindowsAzure.Management.WebSites (≥3.0.0)‘。安装'Microsoft.WindowsAzure.Common.Dependencies 1.1.0‘。成功安装了'Microsoft.WindowsAzure.Common.Dependencies 1.1.0‘。安装'Microsoft.WindowsAzure.Common 1.3.0‘。您正在从微软下载Microsoft.WindowsAzure.Common,其许可协议可在http://aka.ms/windowsazureapache2上获得。检查包中是否有额外的依赖项,这些依赖项可能与他们自己的许可协议一起提供。您对包和依赖项的使用构成了您对其许可协议的接受。如果不接受许可协议,则从设备中删除相关组件。成功安装了'Microsoft.WindowsAzure.Common 1.3.0‘。安装'Microsoft.WindowsAzure.Management 2.0.0‘。成功安装了'Microsoft.WindowsAzure.Management 2.0.0‘。安装'Microsoft.WindowsAzure.Management.Compute 5.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Compute 5.0.0‘。安装'Microsoft.WindowsAzure.Management.MediaServices 2.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.MediaServices 2.0.0‘。安装'Microsoft.WindowsAzure.Management.Monitoring 1.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Monitoring 1.0.0‘。安装'Microsoft.WindowsAzure.Management.Network 3.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Network 3.0.0‘。安装'Microsoft.WindowsAzure.Management.Scheduler 3.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Scheduler 3.0.0‘。安装'Microsoft.WindowsAzure.Management.Sql 3.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Sql 3.0.0‘。安装'Microsoft.WindowsAzure.Management.Storage 3.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Storage 3.0.0‘。安装'Microsoft.WindowsAzure.Management.WebSites 3.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.WebSites 3.0.0‘。安装'Microsoft.WindowsAzure.Management.Libraries 2.0.0‘。成功安装了'Microsoft.WindowsAzure.Management.Libraries 2.0.0‘。将'Microsoft.WindowsAzure.Common.Dependencies 1.1.0‘添加到WebSiteManagement。成功地将'Microsoft.WindowsAzure.Common.Dependencies 1.1.0‘添加到WebSiteManagement中。将'Microsoft.WindowsAzure.Common 1.3.0‘添加到WebSiteManagement。卸载'Microsoft.WindowsAzure.Common 1.3.0‘。成功卸载'Microsoft.WindowsAzure.Common 1.3.0‘。安装失败。回滚..。安装-软件包:无法安装软件包'Microsoft.WindowsAzure.Common 1.3.0‘。您正在尝试将此包安装到一个项目中,该项目的目标是‘portable- not 403+win+win 81’,但该包不包含任何与该框架兼容的程序集引用或内容文件。有关更多信息,请与包作者联系。一行:1字符:1+ Microsoft.WindowsAzure.Management.Libraries -IncludePrerelease +~+ CategoryInfo : NotSpecified:(:) Install-Package,InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,InvalidOperationException PM>
提前感谢!
发布于 2015-01-20 22:35:55
如果仍然看到此错误,请从回购程序中提取最新版本。
https://stackoverflow.com/questions/27048837
复制相似问题