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.
|
|