I've tried to reproduce this in a test project. I've updated my visual studio to the latest preview build and created a classlibrary targetting netcore 2.0. I've added a NUnit3 test to that. NCrunch and VS are still able to build that solution.

Can someone help me out and reproduce this with a small test project? (Or report the steps taken)

Thanks for taking the time to post here! You are absolutely correct. We had, actually, just a couple of hours earlier arrived at the exact same conclusion ourselves and we're in the process of fixing the problem. Including 3rd party assemblies in the NCrunch build system is something we should be trying to avoid anyway (for these kinds of reasons), so we're taking steps to remove the dependency. We should have a fix for this coming in NCrunch v3.13.

My assumption is that replacing NCrunch's packaged copy of Newtonsoft.Json in an installation of NCrunch would probably work around the problem if waiting for v3.13 isn't an option (note: I haven't yet tested this).

My assumption is that replacing NCrunch's packaged copy of Newtonsoft.Json in an installation of NCrunch would probably work around the problem if waiting for v3.13 isn't an option (note: I haven't yet tested this).

Your assumption seems right, I replaced Newtonsoft.Json with the current 10.0.3 Version (net45) and quick test builds the complete solution and runs all tests.

Btw. the Grid Node Server does not have this problem. I've updated to 15.6 Preview 4 on the Grid Node (no NCrunch installed in VS), and swapped the Newtonsoft.Json in the Install Folder of the Grid Node.

Quote:

NCrunch: This project was built on server 'DELL-E-6420'NCrunch: The tests in this project were discovered on server 'DELL-E-6420'

An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)File name: 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at nCrunch.Compiler.ProjectAssetsJson.FindRuntimeAssemblies(String platformName, String packageName, String packageVersion) at nCrunch.Core.PlatformTypes.DotNetClassicPlatformType.GetRuntimeAssemblyReference(SnapshotComponent component, FilePath reference) at nCrunch.Core.TestManagement.TestProcessReferenceResolver.ResolveReferencesForTestProcess(SnapshotComponent primaryComponent, IList`1 allComponentsInProcess) at nCrunch.Core.TestManagement.TestRunnerProcess.() at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity) at nCrunch.Core.TestManagement.TestRunnerProcess.LoadTestRunnerProcessForProjectReturningProcessId(SnapshotComponent snapshotComponent, IList`1 componentsInProcess, TestFrameworkDescription[] testingFrameworks, Nullable`1 newProcessTag, FilePath solutionFilePath, GridClientId client, CustomEnvironmentVariable[] customEnvironmentVariables) at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()

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.