Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Console Tool BuildFailure says Framework472 isn't installed
Regenhardt
#1 Posted : Monday, January 6, 2020 10:32:01 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/5/2019(UTC)
Posts: 20
Location: Germany

Thanks: 6 times
Was thanked: 1 time(s) in 1 post(s)
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.
Remco
#2 Posted : Monday, January 6, 2020 12:17:29 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.


1 user thanked Remco for this useful post.
Regenhardt on 1/6/2020(UTC)
Regenhardt
#3 Posted : Monday, January 6, 2020 3:46:00 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/5/2019(UTC)
Posts: 20
Location: Germany

Thanks: 6 times
Was thanked: 1 time(s) in 1 post(s)
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
1 user thanked Regenhardt for this useful post.
Remco on 1/7/2020(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download