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

Notification

Icon
Error

Cannot build project that uses Refit library
azimarev
#1 Posted : Friday, January 16, 2015 3:53:26 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/16/2015(UTC)
Posts: 2
Location: Norway

Thanks: 1 times
In one of my project I use Paul Betts' library called Refit. In the pre-build event it runs a tool from it package folder to generate some .cs file. Because the file is generated, it is also excluded from source control.

However, when NCrunch is building this project, the packages directory is not getting restored and the event cannot run. I tried to use "include another files" but it does not seem to work.

Ignoring the project is not an option since some other projects depend on it.

How do I resolve this issue?
kharnt0x
#2 Posted : Thursday, April 9, 2015 3:54:27 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/9/2015(UTC)
Posts: 1
Location: Australia

Was thanked: 2 time(s) in 1 post(s)
I managed to resolve this by including the packages\refit.2.2.1\tools folder using the "Additional files to include" setting in NCrunch settings for the project.
2 users thanked kharnt0x for this useful post.
Remco on 4/9/2015(UTC), azimarev on 4/9/2015(UTC)
azimarev
#3 Posted : Thursday, April 9, 2015 7:29:32 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/16/2015(UTC)
Posts: 2
Location: Norway

Thanks: 1 times
Thanks! I actually did the same about 10 minutes after I posted this question and I thought I removed the question itself :)
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.042 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download