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?
Build/Test Issues
ProjectReference to F# Console Application: exe not copied
Started by FrankShearar on 4,778 views
Remco NCrunch Developer
#7359
22 May 2015 23:02 UTC
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.
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.
Post a reply
Log in to reply.