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

Notification

Icon
Error

Cannot find references when building
fehaar
#1 Posted : Tuesday, May 6, 2014 12:22:35 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/6/2014(UTC)
Posts: 5
Location: Denmark

Was thanked: 2 time(s) in 2 post(s)
I have just upgraded NCrunch and try to reopen an old project that used to Work. Now I get this error in the test build window for one of my referenced projects. It seems to complain about an absolute path on an absolute path? I am running NCrunch 2.7.0.5 on VS 2013.

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: File path must be absolute with disk root: C:/Program Files (x86)/Unity3d 4.5f2/Data/Managed/UnityEditor.dll
at nCrunch.Common.IO.FilePath..ctor(String #=qgbD0i5f86gBcP$mUQc8aM4PbyaIN8Y6lgwJKkdQrjkU=, Boolean #=qXEE8kCb$AcxpSVkLyh35ZacPZY36VuaF5QlSpeYc_78=)
at nCrunch.Common.IO.FilePath.FromAbsolutePath(String absoluteFilePath)
at nCrunch.Common.IO.FilePath.FromAbsoluteOrRelativePath(String absoluteOrRelativePath, DirectoryPath relativeTo)
at #=q2tFubr$ZMoO610bQJC$MSFR4S14G1cqXX4Se5PZGjOVEzmadmysYJQRIvccHKCVSRMLtvXNZALdUAHmGPChL5QC11w48L0Lc1nUcK$hIxH0=.#=qgy26nnYqOo7araJeGB291vim3q18cFNtHB_U9cetFzg=(IEnumerable`1 #=qatAtRjm0lVU$rQJyD46cbA==, Boolean #=qvTRSCse0coDiyWIo1rdYPjPCsJ6oKECJwoGrhJ7_DwI=, DirectoryPath #=qZncXekPFV5deiFs3uFpFNwEvE49rmLV9Jmu6nXR9YJs=, DirectoryPath #=qTL8XvrW$lq7uUy$e5MC6Wg==)
at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.#=qTzVAJZZ5P0qRSY$ID5REYPoI3$KK4Wo7z4$YSHRyXg0=(CallMethodMessage #=qstUya4R_bPDeKfn9oE4RFjs3KcStCinV6zfMjgS1nH0=)
at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
at nCrunch.TaskRunner.Ipc.RemoteInstance.#=qw8wqWg7B8FbOj6IMRVANtg==[T](Byte[] #=q1wiwaVeKaJhjohibCiLJag==)
at nCrunch.TaskRunner.Ipc.RemoteInstance.Invoke(IMessage msg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at nCrunch.Compiler.IRemoteBuildRunner.AnalyseComponentBuild(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=q0TUkE9DWr$7P03sUXam5$yLRahZ5gUv3lgfVcUjxEJQ=.#=qp8V_VcUqDSo0pQ6_aoY2C1rxPfaCmlHRvSKMABS19egzgS8wo1_Ld4t1fhiSOENi(IRemoteBuildRunner #=qWEeWNp9Ly2eoYna7hWF1vH_CEXS$ZsLFW5UAAyS_7uo=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.#=q2sD_J2Mk9EzOIgPNBKmIRorfnGBGN04ujtZDYObpJz_vdsomytHRyelItvWuk0Fh(Action`1 #=qDJlycuRKabFbV7EGa1_fVw==, ProcessorArchitecture #=qyIkOSv9RfEARiYQpnim3ssFe6zF0m1qPNlcrJ9EfRZQ=, GridClientId #=qk9c3djaHcgHIUExfvTs1pg==, IBuildableProject #=qreCAbSnY$x8SYjpc5WjvUHXzdOViHZ8okqBuvwS_DaY=, CustomEnvironmentVariable[] #=qmGQwe44Ky7Bzj2bEx3BPjVulfht65oOg63QaKGdk4_M=)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate, ProcessorArchitecture processorArchitecture, VisualStudioVersion vsVersion, CustomEnvironmentVariable[] customEnvironmentVariables)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.#=qthG4iLC7r_zqHc2D5cTnjmJuRwv8EPvE9d0W2cxkEC0=(ProcessorArchitecture #=qgp2l1aKRyKraU4MMiT52klRK5PaSIdM_bb0tIaDVVnk=)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)
Remco
#2 Posted : Tuesday, May 6, 2014 12:46:10 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

Thanks for sharing this issue.

It looks like you have an assembly reference in your project with the slashes around the wrong way ('/' should be '\').

Check the project XML to see if you can spot the reference declaration. Are the slashes correct here? If not, does fixing them up make any difference?
fehaar
#3 Posted : Tuesday, May 6, 2014 12:55:56 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/6/2014(UTC)
Posts: 5
Location: Denmark

Was thanked: 2 time(s) in 2 post(s)
Yes. That is correct. Had not noticed it. The project XML is autogenerated from another Tool and VS does not have any issues reading the slashes. I fixed them up and the error went away.

You might want to allow front slashes in NCrunch. :)

Thanks!
Remco
#4 Posted : Tuesday, May 6, 2014 12:59:36 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Great to hear! To be honest, I had no idea MSBuild actually allowed you to use them. New surprises every day :)
fehaar
#5 Posted : Tuesday, May 6, 2014 1:03:08 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/6/2014(UTC)
Posts: 5
Location: Denmark

Was thanked: 2 time(s) in 2 post(s)
Yeah. It is not something you ever discover when you are not using tools with a non-Windows background.
1 user thanked fehaar for this useful post.
Remco on 5/6/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.049 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download