Build/Test Issues

Problem building graphql client

Started by Dirk Maegh on 1,595 views

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

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

</ItemGroup>


... or you could add the files specifically using NCrunch's additional files to include setting.
Removed the <None Remove="..."/> items and worked as a charm. Thx.

Post a reply

Log in to reply.