【问题标题】:could not install extended WPF toolkit(latest version) on visual studio 2013无法在 Visual Studio 2013 上安装扩展的 WPF 工具包(最新版本)
【发布时间】:2015-11-03 18:01:27
【问题描述】:

我已经尝试了很多次通过 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

如何解决此问题

【问题讨论】:

  • 听起来您尝试安装的 WPF 工具包不支持 .NET 4.5.1。也许您下载了错误的版本?
  • 适合框架的版本是什么?
  • 对不起,我不知道。我的评论只是基于错误消息。我不熟悉那个包。

标签: wpf visual-studio-2013 wpftoolkit


【解决方案1】:

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

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

在输出窗口中,它应该被选择到下拉列表中的包管理器,它会在那里列出它所做的事情。如果失败,您能否复制包管理器输出的内容并将其粘贴到此处供我们查看。

它应该看起来像这样:

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

【讨论】:

  • 好的,我通常不会创建这些应用程序,你有上面的示例项目或 NuGet 的输出吗?
猜你喜欢
  • 2023-03-31
  • 2019-09-04
  • 1970-01-01
  • 2015-10-10
  • 1970-01-01
  • 1970-01-01
  • 2022-01-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多