Replace PlatformAbstractions with RuntimeInformation

This commit is contained in:
BrennanConroy 2016-05-27 15:02:18 -07:00
parent c5abb2e2eb
commit 060a1c8f5a
3 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,6 @@
"Microsoft.DotNet.ProjectModel": "1.0.0-*", "Microsoft.DotNet.ProjectModel": "1.0.0-*",
"Microsoft.Extensions.FileProviders.Abstractions": "1.0.0-*", "Microsoft.Extensions.FileProviders.Abstractions": "1.0.0-*",
"Microsoft.Extensions.FileProviders.Physical": "1.0.0-*", "Microsoft.Extensions.FileProviders.Physical": "1.0.0-*",
"Microsoft.Extensions.PlatformAbstractions": "1.0.0-*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0-*", "Microsoft.Extensions.Logging.Abstractions": "1.0.0-*",
"Microsoft.Extensions.FileSystemGlobbing": "1.0.0-*", "Microsoft.Extensions.FileSystemGlobbing": "1.0.0-*",
"NETStandard.Library": "1.5.0-*", "NETStandard.Library": "1.5.0-*",

View File

@ -1,8 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved. // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Runtime.InteropServices;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
using Microsoft.Extensions.PlatformAbstractions;
namespace Microsoft.DotNet.Watcher.Tools namespace Microsoft.DotNet.Watcher.Tools
{ {
@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Watcher.Tools
public CommandOutputProvider() public CommandOutputProvider()
{ {
_isWindows = PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows; _isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
} }
public ILogger CreateLogger(string name) public ILogger CreateLogger(string name)

View File

@ -18,6 +18,7 @@
"xmlDoc": true "xmlDoc": true
}, },
"dependencies": { "dependencies": {
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0-*",
"Microsoft.DotNet.Watcher.Core": "1.0.0-*", "Microsoft.DotNet.Watcher.Core": "1.0.0-*",
"Microsoft.Extensions.CommandLineUtils": "1.0.0-*", "Microsoft.Extensions.CommandLineUtils": "1.0.0-*",
"Microsoft.Extensions.Logging": "1.0.0-*", "Microsoft.Extensions.Logging": "1.0.0-*",