简体   繁体   English

通过将/ net framework 4.5降级到3.5来兼容实体框架

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

I have created an application with Visual Studio 2013 on my own pc with my own Visual Studio. 我已经使用自己的Visual Studio在自己的PC上使用Visual Studio 2013创建了一个应用程序。 The application is on test phase and I have to send it to my job's one. 该应用程序处于测试阶段,我必须将其发送到我的工作。 Problem, why I start the .exe, I have the error To run this application, you first must install one of the following versions of the .NET Framework: .NETFramework,Version=v4.5 问题,为什么我启动.exe,却出现错误若要运行此应用程序,您首先必须安装以下版本的.NET Framework:.NETFramework,Version = v4.5

If I could install the framework, it won't a problem, but the enterprise where I work won't update it. 如果我可以安装该框架,则不会有问题,但是我工作的企业不会对其进行更新。 Thay stand in 3.5 SP1. Thay站在3.5 SP1中。

I have (I think), succeeded to solve my first problem about DataGrid ( Retromigration 4.5 to 3.5 .net framework for c# application ) 我(我认为)成功解决了有关DataGrid的第一个问题( 适用于C#应用程序的Retromigration 4.5至3.5 .net框架

but now, I have lot of warnings and errors, more or less all about the same thing, Entity Framework. 但是现在,我有很多警告和错误,或多或少都是关于同一件事,即实体框架。

This is 3 of them: 这是其中的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

etc etc etc. 等等等等

I know Entity Framework already exist in 3.5, so how can I do to make it working again? 我知道Entity Framework已经存在于3.5中,那么如何使它重新工作?

Thanks in advance for your help! 在此先感谢您的帮助!

Finally a simply Update-Package –reinstall EntityFramework was enough. 最后,只需执行一个Update-Package –reinstall EntityFramework就足够了。 on the Console Package Console Manager was enough. 在控制台软件包控制台管理器上就足够了。

Now I only have the 30 errors. 现在我只有30个错误。 I progress, step by step. 我一步一步地前进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM