Hi,
I'm trying to get a reliable build job with NCrunch, and right now the build fails for certain projects. It only fails for test-projects using net472, and only on the server.
Non-test projects on net472 are built without problems. But on the test projects the build output looks like this:
Code:
Path:D:\Path\To\Project\Project.csproj
Result:Analysis Failure
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: System.Exception: The requested version of the .NET framework, 'Framework472' is not installed on this system
bei nCrunch.Core.ProcessManagement.ExternalProcessManager.(EffectiveProcessorArchitecture , ProcessLoadParameters )
bei nCrunch.Core.ProcessManagement.ExternalProcessManager.LoadExternalProcess(ProcessLoadParameters parameters, GridClientId client)
bei nCrunch.Core.TestManagement.TestRunnerProcess..()
bei nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
bei nCrunch.Core.TestManagement.TestRunnerProcess.(Nullable`1 , FilePath , GridClientId , CustomVariable[] )
bei nCrunch.Core.TestManagement.TestRunnerProcess..()
bei nCrunch.Common.PerformanceTracking.PerfTracker.TrackActivity(String name, Action activity)
bei nCrunch.Core.TestManagement.TestRunnerProcess.LoadTestRunnerProcessForProjectReturningProcessId(SnapshotComponent snapshotComponent, IList`1 componentsInProcess, TestFrameworkDescription[] testingFrameworks, Nullable`1 newProcessTag, FilePath solutionFilePath, GridClientId client, CustomVariable[] customEnvironmentVariables)
bei nCrunch.Core.Processing.AnalysisTaskLogic.DoProcessTaskAndReturnSuccessFlag()
It works locally, and the normal builds work on that server too. Everything net472 related is installed.
Any idea why this would happen? We have two projects of our solution where this happens, and this lets the job fail.
Other test projects are on net451, those get successfully built and tested.