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

Notification

Icon
Error

ProjectReference to F# Console Application: exe not copied
FrankShearar
#1 Posted : Friday, May 22, 2015 2:00:18 PM(UTC)
Rank: Member

Groups: Registered
Joined: 1/20/2015(UTC)
Posts: 17
Location: United Kingdom

Was thanked: 2 time(s) in 2 post(s)
I have a project A that builds an executable. My test project B wants to run this executable, and verify its output under various conditions. In B's fsproj I added a ProjectReference to A. When I run the tests, I can see (from the error and from inspecting the workspace) that the executable isn't copied.

I can use Additional Files to Copy to do this manually, but that doesn't seem to play well with things either.

Is this expected behaviour?
Remco
#2 Posted : Friday, May 22, 2015 11:02:05 PM(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)
Hi,

Yes - this is due to the behaviour of NCrunch's build optimisations. You can switch off the optimisations simply by turning on the 'Copy referenced assemblies to workspace' setting for the console project. Note that this will have a significant impact on NCrunch response times, as it will need to constantly rebuild dependency chains in response to changes you make to the solution.

There are also more involved solutions to this that don't involve the 'Copy referenced assemblies to workspace' setting, but they will require some modifications to your code. You can read more about this problem here - http://www.ncrunch.net/documentation/considerations-and-constraints_assembly-colocation-assumptions.
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download