Build/Test Issues

IpcConnectionClosedException: The connection has been closed

Started by TURNSKIN on 4,511 views

Hi,
After migrating from dotnet core 2.2 to 3.0 our team started to get this error:

An error occurred while analysing this project after it was built: NCrunch encountered an unexpected error occurred while building an environment to analyse an assembly: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
at nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.(Nullable`1 , FilePath , GridClientId , CustomVariable[] )
at nCrunch.Core.TestManagement.TestRunnerProcess..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.TestManagement.TestRunnerProcess.LoadTestRunnerProcessForProjectReturningProcessId(SnapshotComponent snapshotComponent, IList`1 componentsInProcess, TestFrameworkDescription[] testingFrameworks, Nullable`1 newProcessTag, FilePath solutionFilePath, GridClientId client, CustomVariable[] customEnvironmentVariables)
at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()



Reproduced with dotnet core 3.1 (same issue with 3.0):
https://github.com/PavelA85/nCrunchReporduce

NCrunch latest version
Visual studio 2019

Any way to fix this issue?

Edited

Hi, thanks for sharing this issue. I've reproduced it using your sample and concluded that it seems to be triggered by the specification of a win10-x64 RuntimeIdentifier in the targeted project.

I'm not yet sure why this is the case. We're going to need to do more digging. We'll let you know when we have a solution available.
I'm also having the same issue.
any ideas or suggestions or temporary workarounds would be most welcome!

Edited

The same here - I have NUnit test project targeting netcoreapp3.0, RuntimeIdentifier= win-x64 and Microsoft.NET.Test.Sdk = 16.4.0.

I'm using NCrunch 4.1.0.1.

Please could you notify me when a fix is available.

Many thanks!
Tomaz
Would you be interested in trying the build below to see if this solves the problem for you?

NCrunch_Console_4.2.0.3.msi
NCrunch_Console_4.2.0.3.zip
NCrunch_GridNodeServer_4.2.0.3.msi
NCrunch_GridNodeServer_4.2.0.3.zip
NCrunch_LicenseServer_4.2.0.3.zip
NCrunch_VS2008_4.2.0.3.msi
NCrunch_VS2010_4.2.0.3.msi
NCrunch_VS2010_4.2.0.3.zip
NCrunch_VS2012_4.2.0.3.msi
NCrunch_VS2012_4.2.0.3.zip
NCrunch_VS2013_4.2.0.3.msi
NCrunch_VS2013_4.2.0.3.zip
NCrunch_VS2015_4.2.0.3.msi
NCrunch_VS2015_4.2.0.3.msi.7z
NCrunch_VS2015_4.2.0.3.zip
NCrunch_VS2017_4.2.0.3.msi
NCrunch_VS2017_4.2.0.3.msi.7z
NCrunch_VS2017_4.2.0.3.zip
NCrunch_VS2019_4.2.0.3.msi
NCrunch_VS2019_4.2.0.3.msi.7z
NCrunch_VS2019_4.2.0.3.zip
Hi,
thank you for update.
I am still getting error in my production solution.
output:
[SPOILER]

[09:48:10.4878-LocalAnalysisTask-46] Launching task: Analysing Migration.IntegrationTests
[09:48:10.5228-LocalAnalysisTask-46] Process could not be found in pool with signature matching: [ProcessSignature:
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Migration.IntegrationTests.dll
nCrunch.TestExecution.RemoteTaskRunner
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Migration.IntegrationTests.dll.config.ncrunchconfig
x64
(local)
nCrunch.Core.PlatformTypes.DotNetCore.DotNetCoreProcessLoader
C:\Users\myUser\.nuget\packages\runtime.win-x86.runtime.native.system.data.sqlclient.sni\4.4.0\runtimes\win-x86\native\sni.dll
C:\Users\myUser\.nuget\packages\microsoft.testplatform.testhost\16.4.0\lib\netcoreapp2.1\zh-Hant\Microsoft.VisualStudio.TestPlatform.Common.resources.dll
C:\Users\myUser\.nuget\packages\microsoft.testplatform.testhost\16.4.0\lib\netcoreapp2.1\zh-Hant\Microsoft.TestPlatform.CrossPlatEngine.resources.dll
C:\Users\myUser\.nuget\packages\microsoft.testplatform.testhost\16.4.0\lib\netcoreapp2.1\zh-Hant\Microsoft.TestPlatform.CommunicationUtilities.resources.dll
C:\Users\myUser\.nuget\packages\microsoft.testplatform.objectmodel\16.4.0\lib\netstandard2.0\zh-Hant\Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
C:\Users\myUser\.nuget\packages\microsoft.testplatform.objectmodel\16.4.0\lib\netstandard2.0\zh-Hant\Microsoft.TestPlatform.CoreUtilities.resources.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Security.Cryptography.ProtectedData.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Runtime.Caching.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.Identity.Client.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\xunit.abstractions.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\AutoFixture.AutoMoq.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\AutoFixture.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\AutoFixture.Xunit2.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Cassandra.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Castle.Core.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Messaging.Bus.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\dbup-core.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\dbup-sqlserver.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\EasyNetQ.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Fare.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\FlexLabs.EntityFrameworkCore.Upsert.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\FluentAssertions.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\LZ4.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\LZ4pn.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\MediatR.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\Microsoft.CSharp.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.Data.SqlClient.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.DotNet.PlatformAbstractions.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.EntityFrameworkCore.Abstractions.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.TestPlatform.Utilities.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\Microsoft.VisualBasic.Core.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\Microsoft.VisualBasic.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.VisualStudio.CodeCoverage.Shim.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.VisualStudio.TestPlatform.Common.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\Microsoft.Win32.Primitives.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Moq.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\mscorlib.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\netstandard.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Newtonsoft.Json.Bson.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Newtonsoft.Json.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\NuGet.Frameworks.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Polly.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\RabbitMQ.Client.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Scrutor.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Serilog.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\StatsdClient.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.AppContext.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Buffers.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Configuration.ConfigurationManager.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Configuration.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Console.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Core.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Data.Common.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Data.DataSetExtensions.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Data.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Data.SqlClient.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.Contracts.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.Debug.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.DiagnosticSource.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.FileVersionInfo.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.Process.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.StackTrace.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.TextWriterTraceListener.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.Tools.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.TraceSource.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Diagnostics.Tracing.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Net.Http.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Net.Http.Formatting.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Net.HttpListener.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Net.Mail.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Net.NameResolution.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Resources.Reader.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Resources.ResourceManager.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Resources.Writer.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.CompilerServices.Unsafe.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.CompilerServices.VisualC.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Extensions.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Handles.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.InteropServices.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.InteropServices.RuntimeInformation.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.InteropServices.WindowsRuntime.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Intrinsics.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Loader.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Numerics.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Serialization.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Serialization.Formatters.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Serialization.Json.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Serialization.Primitives.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Runtime.Serialization.Xml.dll
C:\Users\myUser\.nuget\packages\system.security.accesscontrol\4.5.0\ref\netstandard2.0\System.Security.AccessControl.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Claims.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Cryptography.Algorithms.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Cryptography.Csp.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Cryptography.Encoding.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Cryptography.Primitives.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Cryptography.X509Certificates.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\System.Security.Permissions.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.Principal.dll
C:\Users\myUser\.nuget\packages\system.security.principal.windows\4.5.0\ref\netstandard2.0\System.Security.Principal.Windows.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Security.SecureString.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.ServiceModel.Web.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Transactions.Local.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.ValueTuple.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Web.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Web.HttpUtility.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Windows.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.Linq.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.ReaderWriter.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.Serialization.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.XDocument.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.XmlDocument.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.XmlSerializer.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.XPath.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\System.Xml.XPath.XDocument.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\testhost.dll
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.0.0\ref\netcoreapp3.0\WindowsBase.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\xunit.assert.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\xunit.core.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\xunit.execution.dotnet.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\ucrtbase.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\mscorrc.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\mscorrc.debug.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\mscordbi.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\mscordaccore_amd64_amd64_4.700.19.46205.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\mscordaccore.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\hostpolicy.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\hostfxr.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\dbgshim.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\coreclr.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\clrjit.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\clretwrc.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\clrcompression.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-utility-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-time-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-string-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-stdio-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-runtime-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-process-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-private-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-multibyte-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-math-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-locale-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-heap-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-filesystem-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-environment-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-convert-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-crt-conio-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-util-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-timezone-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-sysinfo-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-synch-l1-2-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-synch-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-string-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-rtlsupport-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-profile-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-processthreads-l1-1-1.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-processthreads-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-processenvironment-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-namedpipe-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-memory-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-localization-l1-2-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-libraryloader-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-interlocked-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-heap-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-handle-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-file-l2-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-file-l1-2-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-file-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-errorhandling-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-debug-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-datetime-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\api-ms-win-core-console-l1-1-0.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\System.Private.CoreLib.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\SOS_README.md
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\native\Microsoft.DiaSymReader.Native.amd64.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Security.Cryptography.OpenSsl.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Security.Cryptography.Cng.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Runtime.WindowsRuntime.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Runtime.WindowsRuntime.UI.Xaml.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Private.Xml.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Private.Xml.Linq.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Private.Uri.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.Private.DataContractSerialization.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.IO.Pipes.AccessControl.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\System.IO.FileSystem.AccessControl.dll
C:\Users\myUser\.nuget\packages\microsoft.netcore.app.runtime.win-x64\3.0.0\runtimes\win-x64\lib\netcoreapp3.0\Microsoft.Win32.Registry.dll
C:\Program Files\dotnet\packs\NETStandard.Library.Ref\2.1.0\ref\netstandard2.1\System.ComponentModel.Composition.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\DbUp.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Migration.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Persistence.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\AggregateViews.DueDiligence.Ongoing.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Domain.DueDiligence.Ongoing.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Contracts.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Extensions.dll
C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\TestHelpers.dll

]
[09:48:10.5268-LocalAnalysisTask-46] Adding external process with Id '11d724e4591247db968b60cfd4f169ff'
[09:48:10.5268-LocalAnalysisTask-46] Starting external process '"C:\Program Files\dotnet\dotnet.exe"' with arguments '"C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\nCrunch.TaskRunner.DotNetCore.20.x64.dll" 32516 nCrunch_148a06f633c044879049b10a0500a16d 11d724e4591247db968b60cfd4f169ff "c:\program files (x86)\microsoft visual studio\2019\enterprise\common7\ide\extensions\remco software\ncrunch for visual studio 2019\nCrunch.TestExecution.DotNetCore.dll" nCrunch.TestExecution.RemoteTaskRunner "C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0" "False" "C:\Users\myUser\AppData\Local\NCrunch\32516\13\Migration.IntegrationTests\bin\Debug\netcoreapp3.0\Migration.IntegrationTests.dll.config.ncrunchconfig"'
[09:48:10.5448-LocalAnalysisTask-46] Process ID '4764' initialised
[09:48:10.5448-LocalAnalysisTask-46] Connecting to external process '11d724e4591247db968b60cfd4f169ff' with id 4764
[09:48:14.8979-LocalAnalysisTask-46] Removing external process with Id '11d724e4591247db968b60cfd4f169ff'
[09:48:14.8979-LocalAnalysisTask-46] ERROR (Internal): nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )

[09:48:14.8979-LocalAnalysisTask-46] Publishing Event: [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]]
[09:48:14.8979-LocalAnalysisTask-46] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]] is being published on thread CoreThread to subscriber: ErrorHandler.<.ctor>b__1_0
[09:48:14.8979-LocalAnalysisTask-46] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: The connection has been closed
Details: nCrunch.TaskRunner.Ipc.IpcConnectionClosedException: The connection has been closed
at nCrunch.TaskRunner.Ipc.Fast.IpcReader.Initialise()
at nCrunch.TaskRunner.Ipc.Fast.IpcStream.Connect(String ipcName, Boolean isHost)
at nCrunch.TaskRunner.Ipc.Fast.FastIpcClient.Connect(String ipcName)
at nCrunch.Core.ProcessManagement.DefaultProcessLoader.ConnectToProcess(ExternalProcess externalProcess, ProcessLoadParameters parameters, Action`1 outOfBandMessageHandler)
at nCrunch.Core.ProcessManagement.ExternalProcessManager..()
at nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
at nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
]] is being published on thread UIThread to subscriber: SharedEventPump.
[09:48:14.8989-LocalAnalysisTask-46] Task processing complete for [LocalAnalysisTask: [SnapshotComponent: Migration.IntegrationTests, 11, 51573167], BeingProcessed, (local), 29221979-7d0b-40ca-94e6-b46355838d70], processing time: 00:00:00
[09:48:14.8989-LocalAnalysisTask-46] Publishing Event: [ :[LocalAnalysisTask: [SnapshotComponent: Migration.IntegrationTests, 11, 51573167], BeingProcessed, (local), 29221979-7d0b-40ca-94e6-b46355838d70]]
[09:48:14.8989-LocalAnalysisTask-46] Event [ :[LocalAnalysisTask: [SnapshotComponent: Migration.IntegrationTests, 11, 51573167], BeingProcessed, (local), 29221979-7d0b-40ca-94e6-b46355838d70]] is being published on thread CoreThread to subscriber: ProcessingQueue.
[09:48:14.8989-LocalAnalysisTask-46] Event [ :[LocalAnalysisTask: [SnapshotComponent: Migration.IntegrationTests, 11, 51573167], BeingProcessed, (local), 29221979-7d0b-40ca-94e6-b46355838d70]] is being published on thread UIThread to subscriber: SharedEventPump.
[/SPOILER]

We found workaround for now:
<RuntimeIdentifier Condition="'$(Configuration)'=='Release'">win10-x64</RuntimeIdentifier>

We use conditional RuntimeIdentifier, that is applied only in CI pipeline
When I migrated my production solution to dotnet core 3.1 I get this error:



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 FrameworkReference 'Microsoft.NETCore.App' was not recognized
The FrameworkReference 'Microsoft.AspNetCore.App' was not recognized
   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)

We've updated NCrunch with some better handling of the new implicit framework references that were introduced in .NET Core 3.0 (this fix didn't get included in the build published above). It's worth trying this build to see if it resolves both of the problems you're experiencing:

NCrunch_Console_4.2.0.4.msi
NCrunch_Console_4.2.0.4.zip
NCrunch_GridNodeServer_4.2.0.4.msi
NCrunch_GridNodeServer_4.2.0.4.zip
NCrunch_LicenseServer_4.2.0.4.zip
NCrunch_VS2008_4.2.0.4.msi
NCrunch_VS2010_4.2.0.4.msi
NCrunch_VS2010_4.2.0.4.zip
NCrunch_VS2012_4.2.0.4.msi
NCrunch_VS2012_4.2.0.4.zip
NCrunch_VS2013_4.2.0.4.msi
NCrunch_VS2013_4.2.0.4.zip
NCrunch_VS2015_4.2.0.4.msi
NCrunch_VS2015_4.2.0.4.msi.7z
NCrunch_VS2015_4.2.0.4.zip
NCrunch_VS2017_4.2.0.4.msi
NCrunch_VS2017_4.2.0.4.msi.7z
NCrunch_VS2017_4.2.0.4.zip
NCrunch_VS2019_4.2.0.4.msi
NCrunch_VS2019_4.2.0.4.msi.7z
NCrunch_VS2019_4.2.0.4.zip

Assuming this doesn't work, is there any chance you could extract a particular file for me from the 3.0 failure and submit it through the NCrunch contact form? Right-click on the failing project, go to Advanced and choose to browse to the workspace. Find the bin\debug folder (or your build output directory), then look for a file called nCrunch.TaskRunner.DotNetCore.20.x64.deps.json. This file contains the dependency data for your test environment and lately it's been the cause of these exceptions under .NET Core 3.0. If I can have a copy of this file there's a good chance I can establish the source of the failure.

Regarding the .NET Core 3.1 issue ... We haven't done much in the way of testing with this framework yet, though it's still our goal to resolve issues encountered with it. The problem in this case looks like it might have a wider scope than NCrunch. Can you confirm that the project builds successfully using Visual Studio and MSBuild? I might need to get a code sample that can reproduce the issue if you're able to construct one. The problem is almost certainly dependency related and probably doesn't require any of your actual source code.
By mistake I intalled NCrunch_Console_4.2.0.3.msi instead of NCrunch_VS2019_4.2.0.3.msi
I have installed NCrunch_VS2019_4.2.0.3.msi and it works as expected, projects with
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>

are build as expected.

I will install NCrunch_VS2019_4.2.0.4.msi and get back if any issue is found.
After intalling 4.2.0.4 build started to fail again with message:
..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (263, 5): The FrameworkReference 'Microsoft.AspNetCore.App' was not recognized
..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (263, 5): The FrameworkReference 'Microsoft.NETCore.App' was not recognized


WARNING - ..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (39, 5): NETSDK1086: A FrameworkReference for 'Microsoft.NETCore.App' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs
WARNING - ..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (39, 5): NETSDK1086: A FrameworkReference for 'Microsoft.NETCore.App' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs
WARNING - ..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (39, 5): NETSDK1086: A FrameworkReference for 'Microsoft.AspNetCore.App' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs
WARNING - ..\..\..\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets (39, 5): NETSDK1086: A FrameworkReference for 'Microsoft.AspNetCore.App' was included in the project. This is implicitly referenced by the .NET SDK and you do not typically need to reference it from your project. For more information, see https://aka.ms/sdkimplicitrefs

Output folder (bin\Debug\netcoreapp3.0\win10-x64) for failed project is empty
I have submitted some dep.json files via form.
Thanks! We'll take a look at this and will get back to you.
Hello,

I got the same error as in the original post after trying to build some existing code on a new machine for the first time. The solution built fine in Visual Studio but NCrunch was unable to build it.

Turns out the issue was that I didn't have the required .NET SDK installed on the machine. I'd just done a fresh install of VS 2019 but needed to also install (in my case) the .NET Core 2.2 SDK as this is the one our project was targeting.

Strange that VS could build it and NCrunch couldn't - but installing the SDK fixed it..

https://dotnet.microsoft.com/download/dotnet-core

Hope it helps someone.
Thanks Keith. I can offer some explanation for why NCrunch gave this error but VS didn't.

The error is a generic exception thrown for when the task runner .EXE just disappears without any reason or error given. There are a multitude of things that can cause this. In the case of .NET Core, the error usually appears when NCrunch is trying to build a runtime environment for the specified framework. NCrunch has actually built your project just fine, the error likely appeaedr when it tried to launch an environment to discover your tests - which won't be something that VS does at build time.

Edited

I've tested the same solution that had issues with the latest 4.2.0.7 version and can confirm it solves the problem.

Thanks a lot, guys!

Tomaz

Edited

Post a reply

Log in to reply.