2014-10-10 103 views
0

我用自己的Visual Studio在我自己的電腦上創建了一個Visual Studio 2013應用程序。該應用程序正處於測試階段,我必須將其發送給我的工作。問題,爲什麼我啓動.exe,我有錯誤要運行此應用程序,您首先必須安裝以下版本的.NET Framework之一:.NETFramework,Version = v4.5兼容性實體框架通過降級/網絡框架4.5到3.5

如果我可以安裝框架,這不會有問題,但我工作的企業不會更新它。 Thay站在3.5 SP1中。

我有(我認爲),成功地解決有關的DataGrid(Retromigration 4.5 to 3.5 .net framework for c# application

我的第一個問題,但現在,我有很多的警告和錯誤,或多或少都對同一件事情,實體框架。

這是他們的3:

Warning 56 The primary reference "EntityFramework" could not be resolved because it has an indirect dependency on the .NET Framework assembly "Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" than the version "3.5.0.0" in the current target framework. WpfApplication3 
Warning 71 The primary reference "EntityFramework" could not be resolved because it has an indirect dependency on the .NET Framework assembly "Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework. WpfApplication3 
Warning 40 The primary reference "EntityFramework" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework. WpfApplication3 

等等等等等等

我知道實體框架3.5已經存在,那麼我該怎麼做才能讓它再次合作?

在此先感謝您的幫助!

回答

0

最後簡單地Update-Package –reinstall EntityFramework就足夠了。在控制檯包控制檯管理器上就足夠了。

現在我只有30個錯誤。我一步一步地前進。