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

Notification

Icon
Error

Project failing to build via NCrunch
rpotter
#1 Posted : Wednesday, April 16, 2014 11:38:41 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/16/2014(UTC)
Posts: 2
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
So, I have a project failing to build in NCrunch despite the same project building fine via Visual Studio and the command line.

The root cause seems to be this (included one sample. All of the project references are generating this warning):

"WARNING - C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets: The primary reference "C:\Users\rpotter\AppData\Local\NCrunch\3008\10\Pipeworks\Utility\bin\Debug\Pipeworks.Utility.dll" could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" which was built against the ".NETFramework,Version=v4.0,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5"."

The referenced project is set to build under 3.5 and all of it's referenced are built with 3.5. The project failing to build is *also* building under 3.5. But I guess NCrunch is building the Utility project in 4.0? That seems strange.
rpotter
#2 Posted : Wednesday, April 16, 2014 11:43:13 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/16/2014(UTC)
Posts: 2
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
Ok, so it seems to have been grabbing the wrong version of the referenced assemblies. By configuring it to copy the references on build, it fixed the issue.
1 user thanked rpotter for this useful post.
Remco on 4/17/2014(UTC)
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.019 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download