Replace PlatformAbstractions with RuntimeInformation
This commit is contained in:
parent
c5abb2e2eb
commit
060a1c8f5a
|
|
@ -19,7 +19,6 @@
|
|||
"Microsoft.DotNet.ProjectModel": "1.0.0-*",
|
||||
"Microsoft.Extensions.FileProviders.Abstractions": "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.FileSystemGlobbing": "1.0.0-*",
|
||||
"NETStandard.Library": "1.5.0-*",
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
// 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.
|
||||
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.PlatformAbstractions;
|
||||
|
||||
namespace Microsoft.DotNet.Watcher.Tools
|
||||
{
|
||||
|
|
@ -12,7 +12,7 @@ namespace Microsoft.DotNet.Watcher.Tools
|
|||
|
||||
public CommandOutputProvider()
|
||||
{
|
||||
_isWindows = PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows;
|
||||
_isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
|
||||
}
|
||||
|
||||
public ILogger CreateLogger(string name)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
"xmlDoc": true
|
||||
},
|
||||
"dependencies": {
|
||||
"System.Runtime.InteropServices.RuntimeInformation": "4.0.0-*",
|
||||
"Microsoft.DotNet.Watcher.Core": "1.0.0-*",
|
||||
"Microsoft.Extensions.CommandLineUtils": "1.0.0-*",
|
||||
"Microsoft.Extensions.Logging": "1.0.0-*",
|
||||
|
|
|
|||
Loading…
Reference in New Issue