simongh;12520 wrote:
There was also a
<Target Name="AfterBuild">
<RemoveDir Directories="$(BaseIntermediateOutputPath)" />
That was removing the nuget files and breaking the build
I think that this would have been the #1 issue here, as it would have caused some very inconsistent behaviour through your build system. You definitely don't want this step happening, neither locally in your NCrunch builds nor when using the console tool.
The generation of the files in the obj directory happens in response to the 'Restore' target run by MSBuild. NCrunch actually won't run this for you and it's recommended that you include it as a special build step. For example:
msbuild MySolution.sln /t:Restore