System.BadImageFormatException: Failed to load file or assembly "x_Accessor, ...". This assembly is built using the runtime.

System.BadImageFormatException: Could not load file or assembly 'x_Accessor, 
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 
This assembly is built by a runtime newer than the currently loaded runtime and 
cannot be loaded.

It’s hard for me to find a cure for this ailment ...

I created unit tests for network test projects. By default, the unit test framework is used.

An automatic tool has created an accessor that will be used to test private methods .

[I know that theory, private methods should be checked through their callers, but then it depends on their purpose, content, context, etc., so if I can, I will check them.]

I have done this in the past on several projects, and it worked fine.

But on these two projects that I am trying to test now, I am facing this problem ...

. Framework 3.5 - ? - !

, ..., , , .

, , , .

, , ! .

+5
1

, .NET( CLR, ). , , .NET 3.5, .NET 4.0.

- , , :

VS2010 SP1 3.5

+6

All Articles