Build/Test Issues

Console Tool BuildFailure says Framework472 isn't installed

Started by Regenhardt on 1,743 views

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:


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.
Hi, thanks for sharing this problem.

Possibly, you have a build of net472 that has a different version number to the one we're checking for. Another possibility is that your net472 installation may be corrupt.

Which O/S do you have installed?

Can you check the value of the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\Release

According to official guidance the value of this key should be >= 461808 for situations where net472 is successfully installed. If you have a lower number, you might need to reinstall the framework.


Wow that was indeed the problem, thank you!

It seems we installed net461 after net472, and that overwrote the registry entry, therefore telling ncrunch we had an older version, but still letting msbuild properly compile because it seemingly looks for something else :D

Post a reply

Log in to reply.