Rank: Member
Groups: Registered
Joined: 5/6/2015(UTC) Posts: 23 Location: United States of America
Thanks: 4 times Was thanked: 1 time(s) in 1 post(s)
|
I'm trying out NCrunch on the WiX toolset's build. We do some pretty advanced things in our MSBuild projects to ensure consistency across the many, many projects that make up the WiX toolset. It seems one (or more) of those advanced tricks are confusing NCrunch. We get the following error that seems to be common for those that customize their project files: Quote:System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file: The target "_SplitProjectReferencesByFileExistence" does not exist in the project. at nCrunch.Compiler.RemoteBuildRunner.(FilePath , , String , String , DirectoryPath , String ) 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.(CallMethodMessage ) at nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data) at nCrunch.TaskRunner.Ipc.RemoteInstance.[T](Byte[] ) 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..(IRemoteBuildRunner ) at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , ProcessorArchitecture , GridClientId , IBuildableProject , CustomEnvironmentVariable[] ) 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.(ProcessorArchitecture ) at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)
I tried building some of our projects using the simple command: "msbuild -t:_SplitProjectReferencesByFileExistence". It always worked. So, the target is available in our projects as long as the Imports are fully resolved. I'm a bit at a loss how to debug the issue any further. Verbose logging to the output window is not providing anything obviously useful. If you'd like to reproduce the issue, you can get the projects from "https://github.com/wixtoolset/wix4". I'm attempting to enable NCrunch on the "src\Wix.sln". I'm hoping there is a fix somewhere (either a reasonable fix to our MSBuild files or additional handling in NCrunch). I'm considering getting licenses for my entire company but loading the WiX toolset projects is fundamental to our work and most of our other projects use an MSBuild structure that is the similar as the WiX toolset's (and experience the same NCrunch issue described above). If there is additional information I can provide, do let me know. Thanks.
|