I can't submit this as a bug through NCrunch because the wonderful corporate proxy I'm forced to go through appears to block it.
1. Created Xamarin Forms cross platform mobile application, with netstandard shared project.
2. Add <DesignTimeBuild Condition="'$(NCrunch)' == '1'">true</DesignTimeBuild> to the netstandard shared project so that it will build (as
specified in a recent thread on the forum).
3. Add .net core 2.1 xunit test project using the default visual studio template.
4. Add some basic tests. One test uses a small PDF which is included in a resources .resx as a byte[] to test some Stream code.
5. NCrunch throws this exception to the output window when building the project:
Code:
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.(ProcessorArchitecture , 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 , CustomEnvironmentVariable[] )
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, CustomEnvironmentVariable[] customEnvironmentVariables)
at nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()
I saved the bug report .zip file, if you let me know where to email it to I'll send it over.