簡體   English   中英

通過將/ net framework 4.5降級到3.5來兼容實體框架

[英]Compatibility Entity Framework by downgrading /net framework 4.5 to 3.5

我已經使用自己的Visual Studio在自己的PC上使用Visual Studio 2013創建了一個應用程序。 該應用程序處於測試階段,我必須將其發送到我的工作。 問題,為什么我啟動.exe,卻出現錯誤若要運行此應用程序,您首先必須安裝以下版本的.NET Framework:.NETFramework,Version = v4.5

如果我可以安裝該框架,則不會有問題,但是我工作的企業不會對其進行更新。 Thay站在3.5 SP1中。

我(我認為)成功解決了有關DataGrid的第一個問題( 適用於C#應用程序的Retromigration 4.5至3.5 .net框架

但是現在,我有很多警告和錯誤,或多或少都是關於同一件事,即實體框架。

這是其中的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

等等等等

我知道Entity Framework已經存在於3.5中,那么如何使它重新工作?

在此先感謝您的幫助!

最后,只需執行一個Update-Package –reinstall EntityFramework就足夠了。 在控制台軟件包控制台管理器上就足夠了。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM