From bd2e66fca66f06312607f1b4ac8d369b685c71f3 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Fri, 23 Sep 2016 10:40:25 -0700 Subject: [PATCH] Switching to a new API to detect platform. --- src/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs b/src/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs index 237f8495d..544beedc0 100644 --- a/src/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs +++ b/src/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs @@ -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}"); } }