繁体   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