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

Notification

Icon
Error

Problem building graphql client
Dirk Maegh
#1 Posted : Thursday, March 14, 2024 8:13:49 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 48
Location: Belgium

Thanks: 6 times
Was thanked: 7 time(s) in 7 post(s)
Hi,

I have a problem using ncrunch building a project, using Strawberry Shake from HotChocolate graphql stuff.

I have created a private sample solution for you to inspect.
Where can I send it please ?

Thx,
Dirk
Remco
#2 Posted : Thursday, March 14, 2024 10:07:58 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Hi Dirk,

The best way would be to submit it through the NCrunch support contact form.
Remco
#3 Posted : Thursday, March 14, 2024 8:04:03 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,997

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Thanks for sending through the sample project.

The cause of this looks to be that there are a bunch of files required for the build of this project that are being specifically removed from the project itself using <None Remove=" ... " /> tags inside the .csproj.

Because the files aren't included in the project, they don't get copied to the NCrunch workspace. This causes a build step to fail.

I'm not sure why these files are removed from the project. You could either add them back in, or make the removal of them conditional on NCrunch using an inline build condition, i.e:
Code:

<ItemGroup Condition="'$(NCrunch)' != '1'">
<None Remove="..." />

</ItemGroup>


... or you could add the files specifically using NCrunch's additional files to include setting.
Dirk Maegh
#4 Posted : Monday, March 18, 2024 7:29:13 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 11/30/2016(UTC)
Posts: 48
Location: Belgium

Thanks: 6 times
Was thanked: 7 time(s) in 7 post(s)
Removed the <None Remove="..."/> items and worked as a charm. Thx.
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.037 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download