Skip to content

Commit

Permalink
Fix VS MSBuild discovery
Browse files Browse the repository at this point in the history
My recent change to support VS MSBuild discovery for future versions of VS accidentally broke VS
discovery altogether be leaving "MSBuild" out of the path. Oops!
  • Loading branch information
DustinCampbell committed Nov 14, 2018
1 parent 9592f57 commit c52cf79
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using Microsoft.Extensions.Logging;
Expand Down Expand Up @@ -68,7 +69,9 @@ public override ImmutableArray<MSBuildInstance> GetInstances()
continue;
}

var toolsPath = FindMSBuildToolsPath(installPath);
var msbuildPath = Path.Combine(installPath, "MSBuild");

var toolsPath = FindMSBuildToolsPath(msbuildPath);
if (toolsPath != null)
{
builder.Add(
Expand Down

0 comments on commit c52cf79

Please sign in to comment.