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

Notification

Icon
Error

ncrunch doesn't appear to understand Link file entries in project files
moswald
#1 Posted : Wednesday, June 13, 2012 7:44:40 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2012(UTC)
Posts: 16
Location: Austin, TX

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

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

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


exists. When NCrunch builds the project, I have:

Code:
c:\...\NCrunch\2912\28\Project_A\Data\SomeData.json
c:\...\NCrunch\2912\28\Project_B.UnitTests\...
Remco
#2 Posted : Wednesday, June 13, 2012 9:59:14 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
Remco
#3 Posted : Tuesday, June 19, 2012 4:31:03 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
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.
1 user thanked Remco for this useful post.
moswald on 6/19/2012(UTC)
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.031 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download