Skip to content

Commit 139eaaf

Browse files
Use Environment.NewLine when parsing .NET version
Co-authored-by: Michael Simons <msimons@microsoft.com>
1 parent 45cd8d5 commit 139eaaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.XPlat/ParseDotNetVersions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private string[] ExecuteDotNetCommand(string workingDirectory, string command, L
7878
_process.StartInfo.RedirectStandardOutput = true;
7979
_process.StartInfo.UseShellExecute = false;
8080
_process.Start();
81-
returnData = _process.StandardOutput.ReadToEnd().Split('\n');
81+
returnData = _process.StandardOutput.ReadToEnd().Split(Environment.NewLine);
8282
_process.WaitForExit();
8383
return returnData;
8484
}

0 commit comments

Comments
 (0)