LINQPad 4无法找到EntityFramework [英] LINQPad 4 unable to find EntityFramework

查看:126
本文介绍了LINQPad 4无法找到EntityFramework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用LINQPad 4(最新的测试版)与实体框架POCO类。我采取正常的路径创建一个新的连接,然后选择实体框架DbContext POCO(4.1),然后选择我的他的装配我的课程,当我这样做,我得到以下消息



无法加载文件或程序集EntityFramework。 Version = 4.1.OO,
Culture = neutral,PublicKeyToken = b77a5c561934e089或其一个依赖项。



系统找不到指定的文件。



我可以从我的应用程序加载程序很好,给出了什么?这似乎与CTP中报告的以前的问题有点不同。

解决方案

我今天遇到了同样的问题,这是我如何解决的:



显然LINQPad 4.36.3要求以某种方式实体框架4.2:/

上周发布了: ADO.NET博客



我所做的是:


  1. 通过NuGet安装EF4.2

  2. 重建项目

  3. 将我所有的项目.dll文件到LINQPad文件夹(包括4.2 EF.dll)

  4. 我读了他re ,我需要添加一些东西到LINQPad.exe.config文件,但它已经在那里..

    [在这一点上,我尝试删除那个程序集重定向并运行它对我的4.1 dll,没有工作,仍在寻找4.2]

  5. 关闭VS并卸载EF4.1



这是这样的,之后我的项目现在在4.2上运行,LINQPad也可以工作。


I'm trying to use LINQPad 4 (the latest beta) with Entity Framework POCO classes. I take the normal path of creating a new connection and then selecting "Entity Framework DbContext POCO(4.1) and then selecting my he assembly holding my classes. When I do so I get the following message

"Could not load file or assembly EntityFramework. Version=4.1.O.O, Culture= neutral, PublicKeyToken=b77a5c561934e089 or one of its dependencies.

The system cannot find the file specified."

I'm able to load the assembly from my application just fine. What gives? It seems a bit different from the previous problem like this reported in the CTP.

解决方案

I had the same problem today, this is how I solved it:

Apparently the LINQPad 4.36.3 requires in some way Entity Framework 4.2 :/
It was released last week: ADO.NET blog

What I did is:

  1. Installed EF4.2 via NuGet
  2. Rebuilt the project
  3. Copied all my project .dll files to LINQPad folder (including the 4.2 EF.dll)
  4. I read here that I need to add something to the LINQPad.exe.config file but it was already there..
    [At this point I tried removing that assembly redirect and ran it against my 4.1 dll, did not work, was still looking for 4.2]
  5. Closed VS and uninstalled EF4.1

Thats it, after that both my project is now running on 4.2 and LINQPad works as well.

这篇关于LINQPad 4无法找到EntityFramework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆