Build/Test Issues

NCrunch failing to build 4.6.1 project (VS2017)

Started by twistedtwig on 5,553 views

Hello,

I am using VS2017 Pro Version 15.3.3

I have Ncrunch 3.11.0.9.

I have not been able to run NCrunch on one of our projects at work. When I open the NCrunch Processing Queue window I can see the task build assembly with Status failure with the following output:

[15:08:50.2503-LocalBuildTask-35] 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.(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..()

I am not sure how to go about fixing this issue, or if it is a bug in NCrunch how to give enough feedback to help fix it.

Any assistance would be very gratefully received.


Jon
Hi Jon,

Thanks for sharing this problem.

This looks to be a regression in v3.11. Try the build below and see how you go:

http://downloads.ncrunch.net/NCrunch_Console_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_Console_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.12.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.12.0.2.zip
Hi,

Thank you for that, manually installing the 2017 zip worked great.

Jon
The download you posted fixed this issue for me as well in VS2017. Thanks!

Post a reply

Log in to reply.