2014-08-29 199 views
2

我正在使用Visual Studio 2013.我創建了一個新的項目Windows窗體應用程序(C#),目標框架在選項卡應用程序屬性中我的項目:.NET框架3.5。 當我打開的NuGet和搜索EmguCV並點擊安裝顯示此錯誤:NuGet:無法安裝包VVVV.EmguCV 2.4.2.1

Installing 'VVVV.EmguCV 2.4.2.1'. 
Successfully installed 'VVVV.EmguCV 2.4.2.1'. 
Adding 'VVVV.EmguCV 2.4.2.1' to RadarOCR.Desktop. 
Uninstalling 'VVVV.EmguCV 2.4.2.1'. 
Successfully uninstalled 'VVVV.EmguCV 2.4.2.1'. 
Install failed. Rolling back... 
Could not install package 'VVVV.EmguCV 2.4.2.1'. You are trying to install this package 
into a project that targets '.NETFramework,Version=v3.5', 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

錯誤消息告訴你問題是什麼:

You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework.

的VVVV.EmguCV NuGet包不支持將安裝到面向.NET 3.5的項目。

查看VVVV.EmguCV NuGet包內部,它具有用於.NET 4.0的自定義MSBuild目標文件,並且沒有其他.NET Framework版本。所以,如果你想安裝它,你需要改變你的項目,使其瞄準.NET 4.0或更高版本。

+0

我試過了,但沒有解決我的問題。顯示相同的錯誤消息。 – 2014-08-29 17:56:51

+0

我已成功將VVVV.EmguCV NuGet包安裝到.NET 4.0項目中。如果它給你同樣的錯誤消息,那麼該項目仍然針對.NET 3.5 – 2014-08-29 17:59:58

+0

我再次嘗試。一會兒。 – 2014-08-29 18:06:05