Skip to content

Commit a749872

Browse files
authored
Fix issue with version of Visual Studio. (#26)
Only need major.0 to translate the name of the folder for MSBuild.
1 parent 91b1bd9 commit a749872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MSBuildProjectCreator/MSBuildAssemblyResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private static string GetPathOfFirstInstalledVisualStudioInstance()
122122

123123
if (highestVersion != null)
124124
{
125-
return Path.Combine(highestVersion.Item2, "MSBuild", GetMSBuildVersionDirectory($"{highestVersion.Item1.Major}.{highestVersion.Item1.Minor}"), "Bin");
125+
return Path.Combine(highestVersion.Item2, "MSBuild", GetMSBuildVersionDirectory($"{highestVersion.Item1.Major}.0"), "Bin");
126126
}
127127
}
128128
catch

0 commit comments

Comments
 (0)