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?
Build/Test Issues
Failing build projects that have custom .targets files
Started by partnerinflight on 8,581 views
Remco NCrunch Developer
#609
24 Nov 2011 05:28 UTC
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.
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!
(Plus how do you migrate these settings to other devs on the team?)
Thanks!
Remco NCrunch Developer
#626
30 Nov 2011 05:19 UTC
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.
Post a reply
Log in to reply.