From aa0ad87dd8c10680dd9b0e968bf704efddd45b69 Mon Sep 17 00:00:00 2001 From: Jeff Kluge Date: Sat, 23 Mar 2019 15:28:23 -0700 Subject: [PATCH] Fix issue with version of Visual Studio. Only need major.0 to translate the name of the folder for MSBuild. --- src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs b/src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs index 6cbdb33..96b02ff 100644 --- a/src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs +++ b/src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs @@ -122,7 +122,7 @@ private static string GetPathOfFirstInstalledVisualStudioInstance() if (highestVersion != null) { - return Path.Combine(highestVersion.Item2, "MSBuild", GetMSBuildVersionDirectory($"{highestVersion.Item1.Major}.{highestVersion.Item1.Minor}"), "Bin"); + return Path.Combine(highestVersion.Item2, "MSBuild", GetMSBuildVersionDirectory($"{highestVersion.Item1.Major}.0"), "Bin"); } } catch