无法在visual studio 2013上安装扩展的WPF工具包(最新版本)

时间:2015-11-03 18:01:27

标签: wpf visual-studio-2013 wpftoolkit

我已经尝试了很多次通过Nuget安装wpf扩展工具包。我收到了一个错误

You are trying to install this package into a project that targets '.NETCore,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

如何解决此问题

1 个答案:

答案 0 :(得分:0)

所以我创建了一个空白的C#WPF应用程序解决方案/项目,然后转到项目属性,将框架版本设置为v4.5.1。接下来我去了工具 - > NuGet Package Manager - > 管理解决方案的NuGet包和搜索过滤器类型 WPF扩展工具包。这应列出Extended.WPF.Toolkit的v2.5.0以及下面的Plus版本。

默认情况下,如果您尚未安装软件包,则可以在右侧列出您可用的任何项目作为安装选项。点击安装,它会给你一个预览窗口,说明它将要做什么,并确认将采取行动。

在“输出”窗口中,应该在下拉列表中选择包管理器,然后列出它已完成的操作。如果失败,您是否可以复制包管理器输出的内容并将其粘贴到此处以供我们查看。

看起来应该是这样的:

Attempting to gather dependencies information for package 'Extended.Wpf.Toolkit.2.5.0' with respect to project 'WpfApplication1', targeting '.NETFramework,Version=v4.5.1'
Attempting to resolve dependencies for package 'Extended.Wpf.Toolkit.2.5.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Extended.Wpf.Toolkit.2.5.0'
Resolved actions to install package 'Extended.Wpf.Toolkit.2.5.0'
Adding package 'Extended.Wpf.Toolkit.2.5.0' to folder 'c:\users\netniv\documents\visual studio 2015\Projects\WpfTestApplication1\packages'
Added package 'Extended.Wpf.Toolkit.2.5.0' to folder 'c:\users\netniv\documents\visual studio 2015\Projects\WpfTestApplication1\packages'
Added package 'Extended.Wpf.Toolkit.2.5.0' to 'packages.config'
Executing script file 'c:\users\netniv\documents\visual studio 2015\Projects\WpfTestApplication1\packages\Extended.Wpf.Toolkit.2.5\tools\install.ps1'...


AutoHides             : False
Caption               : Loading...
Collection            : {Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                        Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                        Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase, 
                        Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase...}
CommandBars           : {URL Toolbar, F1 Disambiguation Toolbar}
ContextAttributes     : System.__ComObject
DTE                   : System.__ComObject
Document              : 
HWnd                  : 593536
Height                : 856
IsFloating            : False
Kind                  : Tool
Left                  : 31
Linkable              : False
LinkedWindowFrame     : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowBase
LinkedWindows         : 
Object                : System.__ComObject
ObjectKind            : {E8B06F52-6D01-11D2-AA7D-00C04F990343}
Project               : 
ProjectItem           : 
Selection             : 
Top                   : 106
Type                  : vsWindowTypeToolWindow
Visible               : True
Width                 : 1623
WindowState           : vsWindowStateMaximize
HasBeenDeleted        : False
Events                : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowEvents
VisibilityEvents      : Microsoft.VisualStudio.Platform.WindowManagement.DTE.WindowVisibilityEvents
Rect                  : 31,106,1623,856
OutstandingEventCount : 0



Successfully installed 'Extended.Wpf.Toolkit 2.5.0' to WpfApplication1
========== Finished ==========