Build/Test Issues

.NET Core 3.0 preview and System.Runtime version=4.2.1.0

Started by mattyboy on 4,079 views

Hi,

My test project fails to build in NCrunch (but builds fine in Visual Studio). The error message reads:
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/mattfrear/Swashbuckle.AspNetCore.Filters

Thanks

Matt
Hi!

Thanks for taking the time to post this.

I've looked into this. Would you mind trying the build below?

NCrunch_Console_3.29.0.4.msi
NCrunch_Console_3.29.0.4.zip
NCrunch_GridNodeServer_3.29.0.4.msi
NCrunch_GridNodeServer_3.29.0.4.zip
NCrunch_LicenseServer_3.29.0.4.zip
NCrunch_VS2008_3.29.0.4.msi
NCrunch_VS2010_3.29.0.4.msi
NCrunch_VS2010_3.29.0.4.zip
NCrunch_VS2012_3.29.0.4.msi
NCrunch_VS2012_3.29.0.4.zip
NCrunch_VS2013_3.29.0.4.msi
NCrunch_VS2013_3.29.0.4.zip
NCrunch_VS2015_3.29.0.4.msi
NCrunch_VS2015_3.29.0.4.msi.7z
NCrunch_VS2015_3.29.0.4.zip
NCrunch_VS2017_3.29.0.4.msi
NCrunch_VS2017_3.29.0.4.msi.7z
NCrunch_VS2017_3.29.0.4.zip
NCrunch_VS2019_3.29.0.4.msi
NCrunch_VS2019_3.29.0.4.msi.7z
NCrunch_VS2019_3.29.0.4.zip


For me this worked on the github repo.
Yes, that build works. Thank you.

Post a reply

Log in to reply.