简体   繁体   English

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

[英]could not install extended WPF toolkit(latest version) on visual studio 2013

I have tried so many times install wpf extended toolkit via Nuget.Here I got an error 我已经尝试了很多次通过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

How to resolve this issue 如何解决这个问题

So I created a blank C# WPF Application solution/project and then went to the project properties setting the framework version to v4.5.1. 因此,我创建了一个空白的C#WPF应用程序解决方案/项目,然后转到项目属性,将框架版本设置为v4.5.1。 Next I went to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution and in the search filter type WPF Extended Toolkit . 接下来,我转到工具 -> NuGet软件包管理器 -> 管理解决方案的NuGet软件包,并在搜索过滤器中键入WPF Extended Toolkit This should list v2.5.0 of the Extended.WPF.Toolkit with the Plus version underneath. 这应该在下面列出Plus版本的Extended.WPF.Toolkit v2.5.0。

By default, any project you have available should be listed on the right hand side as ticked for install if you don't already have the package installed. 默认情况下,如果您尚未安装软件包,则任何可用的项目都应在右侧列出,以将其选中。 Click on Install which should give you a preview window saying what it is going to do and confirming will action the change. 单击“ 安装” ,这将为您提供一个预览窗口,说明其将要执行的操作,并确认将执行更改。

In the Output Window, it should be selected to the Package Manager in the drop down and there it will list what it has done. 在“输出”窗口中,应从下拉菜单中的“ 包管理器”中选择它,并在其中列出已完成的操作。 If this fails, can you copy the content of the Package Manager output and paste it in here for us to see. 如果失败,您可以复制Package Manager输出的内容并将其粘贴到此处供我们查看。

It should look something like this: 它看起来应该像这样:

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 ==========

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM