I have a solution with a .NET Core project and lots of .NET Framework projects. It's been working fine until "some point in the past couple of weeks" - no major additions, sorry I can't be more specific.
I'm on latest VS 2017 (15.4.1)
NCrunch tests status bar: "1 project is failing to build"
VS NCrunch status bar: brown circle around "1" - "1 project is failing to build, NCrunch engine is idle".
.NET Core project (RedactedAuth): ok, green tick (no tests - correct)
Unit test project: green question mark, lots of tests shown, "Build successful".
.NET class library project: "Last build successful, rebuilding", clock icon. Note: no build is in progress.
Selecting any of these 3 projects yields no details (e.g. exceptions) in the lower pane.
The "Tests" output pane shows:
[24/10/2017 12:03:09 Error] The operation failed as details for project RedactedAuth could not be loaded.
I enabled detailed logging and found this. Not sure if it's related..
ENGINE - [12:44:26.5157-Core-26] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: An item with the same key has already been added.
Details: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at nCrunch.Core.BuildManagement.BuildEnvironment.(BuildOutput )
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.ProcessingQueue..()
]] is being processed on Core thread with subscriber: ErrorHandler.
Probably the build for the .NET class library has hung or terminated unexpectedly. Is there any information showing for this project in the Processing Queue Window?
It always catches me by surprise when we post at the same time :) This is a known issue that affects some solutions. It's caused by a regression in 3.11.
Try the build below. This contains a fix for the issue, along with a few performance improvements: