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

Notification

Icon
Error

Unable to find a usable version of MSBuild on this machine
gsm122448
#1 Posted : Friday, October 14, 2016 12:23:49 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 3/19/2016(UTC)
Posts: 1
Location: United Kingdom

I've installed the latest release of NCrunch for Visual Studio 2013, and cannot run any unit tests due to NCrunch failing to find MSBuild.

This is the call stack for the exception shown:

System.Exception: Unable to find a usable version of MSBuild on this machine.
at nCrunch.Core.BuildManagement.MSBuildEngineRegistry.GetBuildableProjectForVisualStudioVersion(VisualStudioVersion vsVersion)
at nCrunch.Core.BuildManagement.BuildProcessLauncher.AnalyseComponentBuildInExternalProcess(FilePath projectFilePath, BuildXml buildXml, String useBuildConfiguration, String useBuildPlatform, DirectoryPath solutionDir, String solutionName, List`1 importExpressionsToEvaluate, ProcessorArchitecture processorArchitecture, VisualStudioVersion vsVersion, IList`1 customEnvironmentVariables)
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.(ProcessorArchitecture )
at nCrunch.Client.ComponentLoader.SnapshotComponentFactory.CreateSnapshotComponentFromXml(FilePath projectFilePath, BuildXml projectXml, FilePath solutionFilePath, String[] additionalFilesToIncludeAtSolutionLevel, Boolean isLoadedFromFile, ISnapshotConfig snapshotConfig, VisualStudioVersion vsVersion)


Remco
#2 Posted : Friday, October 14, 2016 10:23:35 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for sharing this issue.

When NCrunch searches for MSBuild under VS2013, it looks for the following assembly in your GAC:

Microsoft.Build, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL

If the assembly cannot be found, NCrunch will throw this error.

It's my understanding that under VS2013, this assembly should normally be registered in your GAC. Can you check whether it exists? If the VS installer didn't register it, you may need to do so manually using Gacutil.exe
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download