Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Can no longer build after VS2022 17.14.0 Preview 3.0 update
arkiaconsulting
#1 Posted : Thursday, April 17, 2025 7:20:46 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 13
Location: France

Thanks: 4 times
Was thanked: 13 time(s) in 7 post(s)
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:

Quote:

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:
Quote:

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.
Remco
#2 Posted : Thursday, April 17, 2025 1:30:27 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,255

Thanks: 979 times
Was thanked: 1316 time(s) in 1221 post(s)
Hi, thanks for sharing this issue.

Are you able to provide a sample solution that can reproduce this problem?
arkiaconsulting
#3 Posted : Friday, April 18, 2025 1:24:40 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 13
Location: France

Thanks: 4 times
Was thanked: 13 time(s) in 7 post(s)
Hi Remco,

I downgraded VS in order to work. I'll send a sample solution on week-end.
1 user thanked arkiaconsulting for this useful post.
Remco on 4/18/2025(UTC)
arkiaconsulting
#4 Posted : Sunday, April 20, 2025 2:10:23 PM(UTC)
Rank: Member

Groups: Registered
Joined: 11/30/2019(UTC)
Posts: 13
Location: France

Thanks: 4 times
Was thanked: 13 time(s) in 7 post(s)
Hi Remco, just sent the sample solution using the contact form.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download