[英]Installing libwebp package in visual studio solution fails
Ok so I'm trying to implement webp support in to a solution of nopcommerce source code. 好的,所以我正在尝试在nopcommerce源代码解决方案中实现Webp支持。
This is it on nuget : 这是在nuget上 :
I have looked through the google docs about it here but could not find anything explaining why the install fail. 我在这里浏览过google文档,但找不到任何解释安装失败的原因。
In package manager console this is the output, but I'm not sure exactly how to fix it. 在软件包管理器控制台中,这是输出,但是我不确定如何解决它。
PM> Install-Package libwebp.v140 -Version 0.5.0.2
PM>安装包libwebp.v140-版本0.5.0.2
Attempting to gather dependency information for package 'libwebp.v140.0.5.0.2' with respect to project 'Presentation\\Nop.Web', targeting '.NETFramework,Version=v4.5.1' Gathering dependency information took 1.85 sec Attempting to resolve dependencies for package 'libwebp.v140.0.5.0.2' with DependencyBehavior 'Lowest' One or more unresolved package dependency constraints detected in the existing packages.config file.
尝试针对项目“ .NETFramework,Version = v4.5.1”针对项目“ Presentation \\ Nop.Web”收集软件包“ libwebp.v140.0.5.0.2”的依赖项信息,收集依赖项信息的时间为1.85秒。具有DependencyBehavior'Lowest'的程序包'libwebp.v140.0.5.0.2'在现有package.config文件中检测到一个或多个未解决的程序包依赖性约束。 All dependency constraints must be resolved to add or update packages.
必须解决所有依赖性约束,才能添加或更新程序包。 If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'KendoUIWeb 2014.1.318 constraint: jQuery (>= 1.9.1)' Resolving dependency information took 0 ms Resolving actions to install package 'libwebp.v140.0.5.0.2' Resolved actions to install package 'libwebp.v140.0.5.0.2' Retrieving package 'libwebp.v140 0.5.0.2' from 'nuget.org'.
如果正在更新这些软件包,则可能会忽略此消息,如果不是,则以下错误可能阻止当前的软件包操作:'KendoUIWeb 2014.1.318约束:jQuery(> = 1.9.1)'解决依赖项信息花费了0毫秒解决安装软件包'libwebp.v140.0.5.0.2'的操作已解决安装软件包'libwebp.v140.0.5.0.2'的操作从'nuget.org'中检索软件包'libwebp.v140 0.5.0.2'。 Retrieving package 'libwebp.v140.redist 0.5.0.1' from 'nuget.org'.
从'nuget.org'检索软件包'libwebp.v140.redist 0.5.0.1'。 GET https://api.nuget.org/v3-flatcontainer/libwebp.v140/0.5.0.2/libwebp.v140.0.5.0.2.nupkg Install failed.
GET https://api.nuget.org/v3-flatcontainer/libwebp.v140/0.5.0.2/libwebp.v140.0.5.0.2.nupkg安装失败。 Rolling back... Package 'libwebp.v140.redist.0.5.0.1' does not exist in project 'Nop.Web' Package 'libwebp.v140.redist.0.5.0.1' does not exist in folder 'C:\\projects\\website\\packages' Executing nuget actions took 66.4 ms Install-Package : Could not install package 'libwebp.v140.redist 0.5.0.1'.
正在回退...项目'Nop.Web'中不存在软件包'libwebp.v140.redist.0.5.0.1'在文件夹'C:\\ projects \\中不存在软件包'libwebp.v140.redist.0.5.0.1' website \\ packages的执行nuget操作花费了66.4毫秒Install-Package:无法安装软件包“ libwebp.v140.redist 0.5.0.1”。 You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.1', but the package does not contain any assembly references or content files that are compatible with that framework.
您正在尝试将此软件包安装到以'.NETFramework,Version = v4.5.1'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the package author.
有关更多信息,请与软件包作者联系。 At line:1 char:1 + Install-Package libwebp.v140 -Version 0.5.0.2 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
在第1行:char:1 + Install-Package libwebp.v140-版本0.5.0.2 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ +
Could not install package 'libwebp.v140.redist 0.5.0.1'.
无法安装软件包“ libwebp.v140.redist 0.5.0.1”。 You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.1', but the package does not contain any assembly references or content files that are compatible with that framework.
您正在尝试将此软件包安装到以'.NETFramework,Version = v4.5.1'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。
That why you can't install the package. 这就是为什么您无法安装该软件包的原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.