Rank: Advanced Member
Groups: Registered
Joined: 10/28/2014(UTC) Posts: 134 Location: United Kingdom
Thanks: 7 times Was thanked: 18 time(s) in 16 post(s)
|
Hi, We're frequently (multiple times per day, multiple dev machines) receiving the following error trying to build various projects in our solution. 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: Assets file 'D:\Source\Repos\Core\{Redacted}\obj\project.assets.json' doesn't have a target for 'netstandard2.0'. Ensure that restore has run and that you have included 'netstandard2.0' in the TargetFrameworks for your project. at nCrunch.Compiler.ComponentAnalysisContext.() at nCrunch.Compiler.ComponentAnalysisContext.AnalyseComponentBuild() at nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters) --- 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.(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(ComponentLoadParameters parameters) at nCrunch.Core.BuildManagement.BuildProcessLauncher..(IRemoteBuildRunner ) at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , FilePath , String , ExternalProcess ) at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , EffectiveProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress ) at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(ComponentLoadParameters parameters, IList`1 customEnvironmentVariables) at nCrunch.Client.ComponentLoader.SnapshotComponentLoader.(EffectiveProcessorArchitecture , String ) at nCrunch.Client.ComponentLoader.SnapshotComponentLoader.CreateComponentFromXml(FilePath projectFilePath, ParsedBuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, VisualStudioVersion vsVersion, ComponentUniqueName componentName, TaskSettings componentTaskSettings, Exception parseException, String targetFramework) Latest version of VS (16.9.3), latest version of NCrunch (4.8.0.3). Am also submitting this within NCrunch itself which will hopefully give you some more debug info. Happy to answer more questions about our project, but I'm unsure what's relevant at this point. Regards, Matthew
|