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

Notification

Icon
Error

Failing build projects that have custom .targets files
partnerinflight
#1 Posted : Wednesday, November 23, 2011 11:27:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/23/2011(UTC)
Posts: 8

Hi gang:

So the projects in my solution include custom .targets files, through the Import directives, like so:

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), `msbuildroot.marker`))\build\base\crosstarget.settings.targets" />

Basically this walks up my source tree looking for the marker file, (finding enlistment root), then walks up the root from there. Naturally this fails spectacularly with ncrunch, since it copies the project off into a totally separate place.

Any suggestions?
Remco
#2 Posted : Thursday, November 24, 2011 5:28:47 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
This should be very easy to fix - just make sure you include your custom target files (and their dependencies) with NCrunch using the AdditionalFilesToInclude configuration setting.
partnerinflight
#3 Posted : Tuesday, November 29, 2011 10:24:06 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/23/2011(UTC)
Posts: 8

Thanks. The solution does work, however it's not terribly practical. My solution has 60 projects in it. Setting this for every project is too onerous, given that only relative paths appear to work, and they have to be adjusted for each project.

(Plus how do you migrate these settings to other devs on the team?)

Thanks!
Remco
#4 Posted : Wednesday, November 30, 2011 5:19:54 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Global settings to permit this sort of thing at solution level are on the list of things to address :) You should be able to share these settings with your team mates by ensuring the ncrunch .xml configuration files are checked into your source control system.
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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download