Merge branch 'release' into dev

This commit is contained in:
Pranav K 2016-04-29 14:31:46 -07:00
commit b528cf90f2
2 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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);
} }