Build/Test Issues

Cannot find references when building

Started by fehaar on 6,502 views

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)
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?
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!
Great to hear! To be honest, I had no idea MSBuild actually allowed you to use them. New surprises every day :)
Yeah. It is not something you ever discover when you are not using tools with a non-Windows background.

Post a reply

Log in to reply.