Build/Test Issues

Can no longer build after VS2022 17.14.0 Preview 3.0 update

Started by arkiaconsulting on 1,834 views

After upgrading VS2022 to the latest version (17.14.0 Preview 3), NCrunch is unable to build the project. It's failing at the very first project down the dependency tree, with the following:


The type 'IMyType' in 'D:\NCrunchWorkspace\48952\5\shared\Domain\Commands\IMyType.cs' conflicts with the imported type 'IMyType' in 'Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'D:\NCrunchWorkspace\48952\5\shared\Domain\Commands\IMyType.cs'.


The other dependent projects fail with:

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file:
There is a circular dependency in the target dependency graph involving target "ResolveProjectReferences".


I tried to, with no success:
- change the sdk version configuration setting from 9.0.300.preview.0.25177.5 to 9.0.200
- clean NCrunch workspace
- clean NCrunch cache

Downgrading VS2022 to the previous preview version solves the issue.
Hi, thanks for sharing this issue.

Are you able to provide a sample solution that can reproduce this problem?
Hi Remco,

I downgraded VS in order to work. I'll send a sample solution on week-end.
Hi Remco, just sent the sample solution using the contact form.
Thanks for sending through the sample solution.

I've managed to reproduce the problem as you've described it. The root cause is a change in the toolset that has broken NCrunch. It's actually quite a serious problem and I'm grateful that you took the time to report it.

Would you be interested in trying the build below to see if this solves the issue for you?

NCrunch_Console_5.14.0.3.msi
NCrunch_Console_5.14.0.3.zip
NCrunch_GridNodeServer_5.14.0.3.msi
NCrunch_GridNodeServer_5.14.0.3.zip
NCrunch_LicenseServer_5.14.0.3.zip
NCrunch_Rider_5.14.0.3.7z
NCrunch_Rider_5.14.0.3.zip
NCrunch_VS2010_5.14.0.3.msi
NCrunch_VS2010_5.14.0.3.zip
NCrunch_VS2012_5.14.0.3.msi
NCrunch_VS2012_5.14.0.3.zip
NCrunch_VS2013_5.14.0.3.msi
NCrunch_VS2013_5.14.0.3.zip
NCrunch_VS2015_5.14.0.3.msi
NCrunch_VS2015_5.14.0.3.msi.7z
NCrunch_VS2015_5.14.0.3.zip
NCrunch_VS2017_5.14.0.3.msi
NCrunch_VS2017_5.14.0.3.msi.7z
NCrunch_VS2017_5.14.0.3.zip
NCrunch_VS2019_5.14.0.3.msi
NCrunch_VS2019_5.14.0.3.msi.7z
NCrunch_VS2019_5.14.0.3.zip
NCrunch_VS2022_5.14.0.3.msi
NCrunch_VS2022_5.14.0.3.msi.7z
NCrunch_VS2022_5.14.0.3.zip
Hi Remco, thanks for your quick reply.

I just re-upgraded VS2022 to 17.14.0 Preview 3.0 and installed your NCrunch version above. I tested the example solution I uploaded above, and a more real life solution as well.

I can confirm it now works normally.

Side note: many thanks for your work on this tool, it's the greatest key to my productivity at work.

Edited

Post a reply

Log in to reply.