Skip to content

Commit

Permalink
Match sdk version on start of string to ignore preview versions (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
bingenito authored Mar 2, 2024
1 parent 14ff10b commit 08e7baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotNetPlease/Helpers/MSBuildHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ public static void LocateMSBuild()

var sdkList = ProcessHelper.Run("dotnet", "--list-sdks");

var sdks = Regex.Matches(sdkList, @"([\d\.]+) *\[(.*)\]")
var sdks = Regex.Matches(sdkList, @"^([\d\.]+) *\[(.*)\]")
.Select(
m => new
{
Expand Down

0 comments on commit 08e7baf

Please sign in to comment.