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

Notification

Icon
Error

NCrunch cannot build F# projects
forki
#1 Posted : Wednesday, May 25, 2011 7:32:29 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 19
Location: Hamburg

Thanks: 1 times
Hi,

I have a lot of F# projects, which I am testing from C# (NUnit). NCrunch can't build them since it's not finding the right FSharp.Build.dll (which is in the tools folder of the project). You can see this here: https://github.com/forki/FAKE

Cheers and thanks for your good work,
Steffen
Remco
#2 Posted : Wednesday, May 25, 2011 12:17:44 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Forki -

Thanks for the post. Your source code will certainly make this an easy issue to figure out. I'll let you know if I can find a workaround. Cheers :)
Remco
#3 Posted : Saturday, June 4, 2011 6:05:02 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Steffen -

My apologies for the time it's taken to get back to you on this one.

I've had a look through this project and concluded the reason behind the build failure is NCrunch's lack of knowledge about the customisations you have for your FSharp build. Basically, NCrunch doesn't know about the FSharp build binaries stored alongside your project, and therefore it doesn't copy them over to the workspace at build time.

To work around this issue, you'll need to make use of the AdditionalFilesToInclude configuration setting for each of your FSharp projects.

After setting the following two values into this configuration option, the entire solution built without trouble:

..\..\..\tools\FSharp\*.dll
..\..\..\tools\FSharp\*.exe

Give it a try and let me know how it goes :)


Cheers,

Remco
forki
#4 Posted : Monday, June 6, 2011 9:06:59 AM(UTC)
Rank: Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 19
Location: Hamburg

Thanks: 1 times
Awesome. This works like a charm. Thanks.

Cheers,
Steffen
Remco
#5 Posted : Monday, June 6, 2011 2:42:20 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Good to hear! :)

Cheers,

Remco
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.034 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download