简体   繁体   English

在Visual Studio解决方案中安装libwebp软件包失败

[英]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.

相关问题 Visual Studio-安装Xamarin.Auth Nuget程序包后卡在加载/初始化解决方案上 - Visual Studio - Stuck on Loading/Initializing Solution after installing Xamarin.Auth Nuget Package 从Visual Studio外部安装NuGet包 - Installing NuGet package from outside of Visual Studio 使用 Visual Studio 2015 安装时出错 python package - Error installing python package with Visual Studio 2015 解决方案在Visual Studio 2015中构建良好,但在Visual Studio 2017中失败 - Solution builds fine in Visual Studio 2015, but fails in Visual Studio 2017 Visual Studio 2013搜索解决方案资源管理器无法查找文件 - Visual Studio 2013 Search Solution Explorer fails to find files Visual Studio 2015 RC无法在Windows 10上创建任何解决方案 - Visual Studio 2015 RC fails to create any solution on Windows 10 Visual Studio生成解决方案,但命令行中的MSBuild失败 - Visual Studio builds solution but MSBuild from the command line fails Visual Studio 2013-重命名SSIS解决方案(包,目标文件,所有内容) - Visual Studio 2013 - Rename SSIS Solution (Package, object files, everything) 如何从 Visual Studio Package 项目中获取当前的解决方案名称? - How to get the current solution name from a Visual Studio Package project? 是否可以在Visual Studio解决方案中引用不同的NuGet包版本? - Is it possible to reference different NuGet package versions in a Visual Studio solution?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM