Switching to a new API to detect platform.

This commit is contained in:
Livar Cunha 2016-09-23 10:40:25 -07:00
parent d1cea1bef2
commit bd2e66fca6

View file

@ -4,8 +4,8 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.Utils;
namespace Microsoft.DotNet.Tools.MSBuild
{
@ -45,7 +45,7 @@ namespace Microsoft.DotNet.Tools.MSBuild
private static string GetRunCscPath()
{
var scriptExtension = RuntimeEnvironment.OperatingSystemPlatform == Platform.Windows ? ".cmd" : ".sh";
var scriptExtension = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? ".cmd" : ".sh";
return Path.Combine(AppContext.BaseDirectory, $"RunCsc{scriptExtension}");
}
}