Merge branch 'release' into dev
This commit is contained in:
commit
b528cf90f2
|
|
@ -1,9 +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;
|
|
||||||
using Microsoft.Extensions.PlatformAbstractions;
|
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.Extensions.PlatformAbstractions;
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Watcher.Tools
|
namespace Microsoft.DotNet.Watcher.Tools
|
||||||
{
|
{
|
||||||
|
|
@ -11,9 +10,9 @@ namespace Microsoft.DotNet.Watcher.Tools
|
||||||
{
|
{
|
||||||
private readonly bool _isWindows;
|
private readonly bool _isWindows;
|
||||||
|
|
||||||
public CommandOutputProvider(IRuntimeEnvironment runtimeEnv)
|
public CommandOutputProvider()
|
||||||
{
|
{
|
||||||
_isWindows = runtimeEnv.OperatingSystem == "Windows";
|
_isWindows = PlatformServices.Default.Runtime.OperatingSystemPlatform == Platform.Windows;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ILogger CreateLogger(string name)
|
public ILogger CreateLogger(string name)
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace Microsoft.DotNet.Watcher.Tools
|
||||||
{
|
{
|
||||||
_loggerFactory = new LoggerFactory();
|
_loggerFactory = new LoggerFactory();
|
||||||
|
|
||||||
var commandProvider = new CommandOutputProvider(PlatformServices.Default.Runtime);
|
var commandProvider = new CommandOutputProvider();
|
||||||
_loggerFactory.AddProvider(commandProvider);
|
_loggerFactory.AddProvider(commandProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue