Build/Test Issues

NCrunch cannot build F# projects

Started by forki on 11,609 views

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
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 :)
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
Awesome. This works like a charm. Thanks.

Cheers,
Steffen
Good to hear! :)

Cheers,

Remco

Post a reply

Log in to reply.