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

Notification

Icon
Error

.NET Core 3.0 preview and System.Runtime version=4.2.1.0
mattyboy
#1 Posted : Monday, July 1, 2019 10:40:27 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/2/2015(UTC)
Posts: 17
Location: United Kingdom

Thanks: 6 times
Was thanked: 4 time(s) in 4 post(s)
Hi,

My test project fails to build in NCrunch (but builds fine in Visual Studio). The error message reads:
Code:
Assembly 'Swashbuckle.AspNetCore.Filters' with identity 'Swashbuckle.AspNetCore.Filters, Version=5.0.0.0, Culture=neutral, PublicKeyToken=aa1e9c5053bfbe95' uses 'System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I think the cause is that my 'Swashbuckle.AspNetCore.Filters' assembly targets .NET Core 3.0 (preview 5), and my test project which fails to compile in NCrunch targets .NET Core 2.0. The same solution also contains a .NET Core 2.0 Web app and that too fails to compile in NCrunch.

The solution builds fine and the tests run in Visual Studio 2019 Preview and at the command line, so it should work in NCrunch, shouldn't it?

The source code lives here: https://github.com/mattf...ckle.AspNetCore.Filters

Thanks

Matt
1 user thanked mattyboy for this useful post.
michaelkroes on 7/2/2019(UTC)
michaelkroes
#2 Posted : Tuesday, July 2, 2019 5:01:47 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
1 user thanked michaelkroes for this useful post.
mattyboy on 7/2/2019(UTC)
mattyboy
#3 Posted : Tuesday, July 2, 2019 9:19:14 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/2/2015(UTC)
Posts: 17
Location: United Kingdom

Thanks: 6 times
Was thanked: 4 time(s) in 4 post(s)
Yes, that build works. Thank you.
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download