Build/Test Issues

NCrunch can't build my core2.2 solution

Started by mrpaul on 2,697 views

Hey everyone,

I really hope to find some help here, as it took me hours to probably solve my problem with no luck.

NCrunch Version: 3.22.0.1
VS Version: VS2017 15.9.3
By-Side Installation: R#

Problem:
Ncrunch can't built the solution.

2 colleagues have similar setups - all fine there. We find no differences in configuration and the like.
I already tried to reinstall the whole setup - no success.

Stacktrace

System.Exception: An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> nCrunch.Common.UserException: Errors occurred while trying to load the project file: 
Die Ressourcendatei "C:\Sources\platform\Softfair.Kolumbus\src\Softfair.Kolumbus.Host\obj\project.assets.json" verfügt über kein Ziel für ".NETCoreApp,Version=v2.2/win-x64". Stellen Sie sicher, dass die Wiederherstellung ausgeführt wurde, und dass Sie "netcoreapp2.2" in die TargetFrameworks für Ihr Projekt aufgenommen haben. Unter Umständen müssen Sie auch "win-x64" in die RuntimeIdentifiers Ihres Projekts aufnehmen.
   bei nCrunch.Compiler.ComponentAnalysisContext.()
   bei nCrunch.Compiler.ComponentAnalysisContext.AnalyseComponentBuild()
   bei nCrunch.Compiler.RemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   bei nCrunch.TaskRunner.Ipc.IpcMessageProcessor.(CallMethodMessage )
   bei nCrunch.TaskRunner.Ipc.IpcMessageProcessor.ProcessMessageReturningResult(Byte[] data)
   bei nCrunch.TaskRunner.Ipc.RemoteInstance.(Byte[] )
   bei nCrunch.TaskRunner.Ipc.RemoteInstance.Invoke(IMessage msg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei nCrunch.Compiler.IRemoteBuildRunner.AnalyseComponentBuild(ComponentLoadParameters parameters)
   bei nCrunch.Core.BuildManagement.BuildProcessLauncher..(IRemoteBuildRunner )
   bei nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , FilePath , String , ExternalProcess )
   bei nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , EffectiveProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress )
   bei nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(ComponentLoadParameters parameters, IList`1 customEnvironmentVariables)
   bei nCrunch.Client.ComponentLoader.SnapshotComponentLoader.(EffectiveProcessorArchitecture , String )
   bei 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)
Hi, thanks for sharing this problem.

This is an error being raised by MSBuild when NCrunch tries to load the project file. Something is not right with the project.assets.json file inside the project's directory. Try deleting ALL the 'bin' and 'obj' directories for ALL your solutions while you have the IDE closed. The next time you open the solution, the IDE should restore the file in a hopefully uncorrupted state.

Post a reply

Log in to reply.