2015-11-03 38 views
0

我已經嘗試了很多次通過Nuget.Here安裝WPF擴展工具包我得到一個錯誤無法在Visual Studio中安裝擴展WPF工具(最新版)2013

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 

如何解決這個問題

+0

聽起來你正在試圖安裝不支持.NET 4.5.1的WPF工具。也許你正在下載錯誤的版本? –

+0

適合框架的版本是什麼? – prathik

+0

對不起,我不知道。我的評論只是基於錯誤消息。我對這個軟件包並不熟悉。 –

回答

0

所以我創建了一個空白的C#WPF應用程序解決方案/項目,然後轉到項目屬性,將框架版本設置爲v4.5.1。接下來,我去工具 - >NuGet包管理器 - >管理的NuGet包解決方案並在搜索過濾器類型WPF擴展工具包。這應該列出Extended.WPF.Toolkit的v2.5.0與下面的Plus版本。

默認情況下,如果您尚未安裝軟件包,則默認情況下,您可用的任何項目都應在右側列出,並標記爲安裝。點擊安裝這應該給你一個預覽窗口,說明它將要做什麼,確認將會改變。

在輸出窗口中,應該在下拉列表中選擇程序包管理器,並在那裏列出它做了什麼。如果失敗,您可以複製Package Manager輸出的內容並將其粘貼到這裏供我們查看。

它應該是這個樣子:

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

是否適用於Windows應用程序? – prathik

+0

你是在通用應用程序上這樣做? – netniV

+0

nope在windows 8商店應用程序 – prathik

相關問題