Our build requires "Microsoft.Web.Mvc.Build.dll" which is not strongly named and cannot be installed to GAC. Where should I put it so NCrunch would find it?
Currently it throws error:
NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/documentation/troubleshooting_project-build-issues
The "Microsoft.Web.Mvc.Build.CreateAreaManifest" task could not be loaded from the assembly C:\Users\alex\AppData\Local\NCrunch\11376\85\Tools\MVC2-BuildTask\bin\Release\Microsoft.Web.Mvc.Build.dll. Could not load file or assembly 'file:///C:\Users\alex\AppData\Local\NCrunch\11376\85\Tools\MVC2-BuildTask\bin\Release\Microsoft.Web.Mvc.Build.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Visual Studio 2015,
Windows 10,
NCrunch 2.23.0.2
The "missing" dll is referenced via "UsingTasks" in the csproj file as
<UsingTask TaskName="Microsoft.Web.Mvc.Build.CreateAreaManifest" AssemblyFile="$(SolutionDir)Tools\MVC2-BuildTask\bin\Release\Microsoft.Web.Mvc.Build.dll" />
<UsingTask TaskName="Microsoft.Web.Mvc.Build.CopyAreaManifests" AssemblyFile="$(SolutionDir)Tools\MVC2-BuildTask\bin\Release\Microsoft.Web.Mvc.Build.dll" />
Both MSBuild and VisualStudio can load using this reference just fine...
Remco NCrunch Developer
#8820
06 Jun 2016 23:26 UTC
Hi,
This looks like NCrunch is having difficulty automatically resolving this build task file (see http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies).
My guess would be that the $(SolutionDir) reference inside the UsingTask element is creating an evaluation sequence problem that is preventing the auto detection from working.
The easiest way to fix this is just to include the DLL inside the 'Additional files to include' setting in your NCrunch project or solution configuration.
This looks like NCrunch is having difficulty automatically resolving this build task file (see http://www.ncrunch.net/documentation/considerations-and-constraints_implicit-file-dependencies).
My guess would be that the $(SolutionDir) reference inside the UsingTask element is creating an evaluation sequence problem that is preventing the auto detection from working.
The easiest way to fix this is just to include the DLL inside the 'Additional files to include' setting in your NCrunch project or solution configuration.
Post a reply
Log in to reply.