无法通过nuget安装包

时间:2016-04-07 15:33:51

标签: visual-studio-2015 nuget umbraco

umbraco整个下午尝试全面安装Visual Studio 2015。我收到有关特定包裹ImageProcessor的投诉。只是尝试安装它这个包单独产生相同的不是非常有用的消息。这些东西应该只是工作不是吗?

有趣的是,我可以安装任何内容,包括版本2.3.2

恼怒我卸载了VS 2015并重新安装。还从中移除了nuget并重新添加它。不知道我们应该如何调试"调试"这些东西希望过去有类似痛苦的人可以分享一个解决方案。这是它的要点:

> PM> install-package imageprocessor Attempting to gather dependency
> information for package 'imageprocessor.2.3.3' with respect to project
> 'Show.Umbraco', targeting '.NETFramework,Version=v4.5.1' Attempting to
> resolve dependencies for package 'imageprocessor.2.3.3' with
> DependencyBehavior 'Lowest' Resolving actions to install package
> 'imageprocessor.2.3.3' Resolved actions to install package
> 'imageprocessor.2.3.3' Install failed. Rolling back... Package
> 'ImageProcessor.2.3.3' does not exist in project 'Show.Umbraco'
> Package 'ImageProcessor.2.3.3' does not exist in folder
> 'C:\_dev\Show\Show.Umbraco\packages' install-package : Could not
> install package 'ImageProcessor 2.3.3'. 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. For more information,
> contact the package author. At line:1 char:1
> + install-package imageprocessor
> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
>     + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

1 个答案:

答案 0 :(得分:1)

您使用的是Visual Studio 2015 Update 2吗?

我遇到了同样的问题,并且一直非常沮丧。

解决方案是在以前版本的Visual Studio(Visual Studio 2013)中打开项目我安装了UmbracoCms 7.4.3(包括ImageProcessor)而没有问题!