Build/Test Issues

ncrunch doesn't appear to understand Link file entries in project files

Started by moswald on 4,701 views

I've got a data file contained in Project_A, that I also include in Project_B.UnitTests as a link. In the vcproj file, it looks like this:

<ItemGroup>
    <None Include="..\..\Project_A\Data\SomeData.json">
      <Link>TestData\SomeData.json</Link>
   </None>
</ItemGroup>


When Visual Studio builds the projects, the end result that

Project_B.UnitTests\bin\Debug\TestData\SomeData.json


exists. When NCrunch builds the project, I have:

c:\...\NCrunch\2912\28\Project_A\Data\SomeData.json
c:\...\NCrunch\2912\28\Project_B.UnitTests\...

Edited

Thanks - this makes sense. NCrunch has no awareness of these links. I'll see what I can do about fixing it in a future version. A useful (through perhaps rather clumsy) way to work around this issue is to add the files using the 'Additional files to include' configuration option.
For anyone interested, 1.40b has just been released with a fix for the above issue. NCrunch should now be able to resolve <Link>ed files automatically.

Post a reply

Log in to reply.