Hi,
Bug report:
Just installed NCrunch to give it a try. But encountering a build problem:
In a solution of 61 projects this is the error for one assembly that pops up:
--
NCrunch: If you are experiencing problems in getting this project to build, have a look at
https://www.ncrunch.net/...ng_project-build-issues
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamTest\Microsoft.TeamTest.targets (14)#1: Could not load file or assembly 'Haddock.Business.Product, Version=2.9.0.7591, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
--
It seems to be saying this for the unittest-project that references all the other projects in the solution.
This means that the UnitTest project is unable to build.
NCrunch also mentions:
--
This component makes use of MS Test private method accessors, which require referenced assemblies to be copied to the component build output directory. This will have an impact on the performance of NCrunch, as extra work must be done to rebuild this component every time one of its dependencies changes.
--
We have actually "solved" this issue by configuration of NCrunch to switch the copy local attribute for ALL projects in the solution. Problem with this is that it takes NCrunch to a halt, it is far too slow.
Other interesting things that might be of interest:
- All csproj files are in its own subfolder, solution is in the main folder.
- Within the csproj files, we have deliberately inluded a small XML files which states what the SHARED output folder is like this:
<Import Project="$(SolutionDir)\SharedConfig.xml" />
The SharedConfig.xml contains something like this:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="(- BROKEN LINK -)">
<PropertyGroup>
<OutputPath>$(SolutionDir)BUILD</OutputPath>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>$(SolutionDir)BUILD\DEBUG</OutputPath>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>$(SolutionDir)BUILD\RELEASE</OutputPath>
</PropertyGroup>
</Project>
This might of course not related to the problem, but it might be, not sure?
What we also tried is to create a separate solution with the mentioned project (and all the projects it referenced) and NCrunch than works, but
What other information might we provide to solve this issue so that we can use NCrunch without having to copy-local everything?
Thanks,