Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Where should I put Microsoft.Web.Mvc.Build.dll ?
Tusha
#1 Posted : Monday, June 6, 2016 8:22:38 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/6/2016(UTC)
Posts: 1
Location: United States of America

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/d...ng_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
#2 Posted : Monday, June 6, 2016 11:26:45 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.024 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download