Rank: Advanced Member
Groups: Registered
Joined: 9/16/2019(UTC) Posts: 70 Location: Italy
Thanks: 1 times Was thanked: 4 time(s) in 4 post(s)
|
Hello Support, When I reference a .NET Standard 2.0 project, NCrunch gives 2 different build errors it in 2 different machines: Machine 1. Code:
[PID:4076 16:17:40.3629 NodeProcessor-534] ERROR (Internal): System.NullReferenceException: Object reference not set to an instance of an object.
at nCrunch.Compiler.DotNetCoreSdkDirectory.GetInstalledSdkDirectories()
at nCrunch.Core.BuildManagement.GridNodeDotNetCoreSdkVersionSelector.OverrideDotNetCoreSdkForProcess(DotNetCoreSdkVersion dotNetCoreSdkVersion, ProcessLoadParameters parameters, VisualStudioVersion vsVersion)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(EffectiveProcessorArchitecture , BuildSystemParameters , IList`1 , FilePath , DotNetCoreSdkVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.(Action`1 , EffectiveProcessorArchitecture , GridClientId , BuildSystemParameters , IList`1 , Nullable`1 , GridAddress , DotNetCoreSdkVersion )
at nCrunch.Core.BuildManagement.BuildProcessLauncher.BuildComponentInExternalProcess(ComponentBuildParameters buildParameters, VisualStudioVersion vsVersion, GridClientId client, IList`1 customEnvironmentVariables, Guid taskId, GridAddress clientAddress)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender, Guid taskId, GridAddress clientAddress, Boolean extractCoverageReportStructure)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.GridNode.NodeTaskProcessor..()
at nCrunch.Common.ErrorHandler.DoWithErrorHandling(Action action, Object context)
Machine 2. Code:
[PID:9268 16:17:41.0082 ?-14] The target "Build" does not exist in the project.
[PID:9408 16:17:41.0082 NodeProcessor-27] ERROR (Build): ProtobufNet: C:\NCrunch Grid Node\9408\567\ProtobufNet\ProtobufNet.csproj (0): The target "Build" does not exist in the project.
You can download the sample project here. I'm using NCrunch v4.11.0.2 For Machine 1, maybe I need to install something like .net core SDK? For Machine 2, maybe something is missing in the project file?
|