Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

BadImageFormatException
Qbunia
#1 Posted : Wednesday, November 8, 2017 3:11:04 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/26/2017(UTC)
Posts: 2
Location: Poland

Thanks: 2 times
Hello,

Lately I upgraded my projects from .NET 4.5.1 to 4.7.1

Now some of my test projects doesn`t compile. I`m getting this error:

An error occurred while analysing this project after it was built: System.BadImageFormatException: Could not load file or assembly 'file:///C:\Users\Qbusoft\AppData\Local\NCrunch\2508\34\test\S360.CommonData.Tests\bin\Debug\S360.CommonData.Tests.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
File name: 'file:///C:\Users\Qbusoft\AppData\Local\NCrunch\2508\34\test\S360.CommonData.Tests\bin\Debug\S360.CommonData.Tests.dll'

Weird thing is that when I remove Reference to xunit.core the test project builds smoothly.


Specs:
VisualStudio 2017
.NET 4.7.1
Windows 10
Xunit 2.3.1
NCrunch 3.11.9
Remco
#2 Posted : Thursday, November 9, 2017 5:10:19 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
2 users thanked Remco for this useful post.
Qbunia on 11/9/2017(UTC), Magbr on 11/16/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download