This commit is contained in:
Piotr Puszkiewicz 2017-01-24 21:59:18 -08:00
parent 45727ab4e3
commit 19ed5a558b
2 changed files with 59 additions and 0 deletions

View file

@ -1,5 +1,6 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System.Linq;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
@ -12,6 +13,10 @@ namespace Microsoft.DotNet.Cli.Build
{
public DotNetTool()
{
EnvironmentVariables = new EnvironmentFilter()
.GetEnvironmentVariableNamesToRemove()
.Select(e => $"{e}=")
.ToArray();
}
protected abstract string Command { get; }