#9182
21 Sep 2016 06:47 UTC
Hi,
I am trying to activate ncrunch for a vsvim solution. https://github.com/jaredpar/VsVim
When NCrunch builds the solution, it fails with an error
Could not copy the file "Z:\cl36\tmp\ncrunch\4724\4\References\Vs2015\App.config" because it was not found.
But why ncrunch is trying to copy this file? I don't have any app.config files in the solution.
#9183
21 Sep 2016 12:16 UTC
Hi,
This solution contains custom build steps to copy the app.config file from the references directory into the build output directory.
You can solve this problem by adding "Reference\Vs2015\App.Config" to your solution-level 'Additional files to include' setting.
The subsequent VsVim project build issue can be resolved by making the inclusion of the VS SDK conditional on NCrunch not being loaded, as such:
<Import Condition="Exists($(VsSdkTargets)) and '$(NCrunch)' != '1'" Project="$(VsSdkTargets)" />