Hi there,
Occasionally, when I'm making a lot of quickfire changes to code and tests, NCrunch will get itself in a pickle and will start throwing build errors such as the following:
Quote:The project currently contains references to more than one version of '<AssemblyName>', a direct reference to version 1.7.0.15007 and an indirect reference to version 1.7.0.23337. Change the direct reference to use version 1.7.0.23337 (or higher) of <AssemblyName>.
And finally:
Quote:WARNING - C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets: MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
Where <AssemblyName> is the name of my assembly, such as Dan.Models.In my AssemblyInfo.vb, I have the following:
Quote:<Assembly: AssemblyVersion("1.7.0.*")>
The only way to resolve this is usually either to disable NCrunch or close Visual Studio, and then delete the folder that it builds the solution in. Once that's done, re-enabling NCrunch or restarting VS will fix the issue.
I can't remove the AssemblyVersion attribute so am left with submitting this bug instead.
Any help in resolving this would be greatly appreciated.
Thanks, Dan