Build/Test Issues

Build issue - NCrunch halts on failure

Started by eskil on 5,408 views

I've upgraded from v1.37b to 1.38b and I am getting the following build failure in the processing queue. It happens for one project in the solution. There are no dependencies on this project, but the build processing stops completely after this error. I've tried deleting the NCrunch cache, disabling and re-enabling NCrunch, but the issue persists.

[08:50:00.7604-BuildTask-146] ERROR (Internal): 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.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents)
at nCrunch.Core.BuildTask.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.ProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.ProcessingQueue.#=q_vrMx4Vpdr8SHIA907gDpw==(ProcessingTask #=qnFdWWU2KDBGY_Tb0$G9s3A==)
I had some early reports of this problem coming in shortly after 1.38b went public. It was caused by a change made to the analysis method NCrunch uses for establishing project references. Because it was a fairly simple thing to fix, I introduced a separate revision of 1.38b (1.38.0.17) a few hours later with the fix included. Try downloading the latest version and see if this fixes the problem for you.

Post a reply

Log in to reply.