简体   繁体   English

LINQPad:使用(.NET4)VS2010程序集时出现“ BadImageFormatException”?

[英]LINQPad: “BadImageFormatException” when using (.NET4) VS2010 assemblies?

Using LINQPad, I am trying to test a few snippets with my own C# objects, which are written in .NET 4.0 (Beta 1) using VS2010 B1. 使用LINQPad,我尝试使用我自己的C#对象测试一些片段,这些片段使用VS2010 B1以.NET 4.0(Beta 1)编写。 When I try to use it, I get the following message in LINQPad: 当我尝试使用它时,我在LINQPad中收到以下消息:

BadImageFormatException: Could not load file or assembly 'file:///C:...\\XX.dll' or one of its dependencies. BadImageFormatException:无法加载文件或程序集'file:/// C:... \\ XX.dll'或其依赖项之一。 This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 该程序集是由比当前加载的运行时新的运行时构建的,无法加载。

In this post , one of the LINQPad authors mentions that ".. There's already a Framework 4.0 build ..". 在这篇文章中 ,LINQPad的一位作者提到“ ..已经有一个Framework 4.0构建..”。 Anyone knows where is it, or how to get it? 有人知道它在哪里,或如何获得它?

I was also looking for the manifest file for the LINQPad.exe, since I know there is a way to extend support for .NET 4.0 by adding that as a supported version in the manifest file. 我也在寻找LINQPad.exe的清单文件,因为我知道可以通过将清单添加为清单文件中的受支持版本来扩展对.NET 4.0的支持。 I once did that, but I can't find out now how to do it !! 我曾经做过,但是现在我不知道怎么做! Anyone knows a reference? 有人知道参考吗? Not to mention, I don't know if that would work for LINQPad, and if the manifest file is embedded (since I can't see one). 更不用说,我不知道这是否适用于LINQPad,以及清单文件是否已嵌入(因为我看不到)。

我相信可以在这里找到: http : //www.linqpad.net/Beta.aspx

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

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