WiP
This commit is contained in:
parent
19ed5a558b
commit
c25abfb7c7
5 changed files with 78 additions and 0 deletions
|
@ -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;
|
||||
using System.Linq;
|
||||
|
||||
using Microsoft.Build.Framework;
|
||||
|
@ -13,10 +14,20 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
{
|
||||
public DotNetTool()
|
||||
{
|
||||
Log.LogMessage(MessageImportance.High, "STARTING ");
|
||||
EnvironmentVariables = new EnvironmentFilter()
|
||||
.GetEnvironmentVariableNamesToRemove()
|
||||
.Select(e => $"{e}=")
|
||||
.ToArray();
|
||||
|
||||
Log.LogMessage(MessageImportance.High, "OVERRIDING ");
|
||||
|
||||
foreach (var ev in EnvironmentVariables)
|
||||
{
|
||||
Log.LogMessage(MessageImportance.High, $"{ev}");
|
||||
}
|
||||
|
||||
throw new Exception($"{EnvironmentVariables.Count()}");
|
||||
}
|
||||
|
||||
protected abstract string Command { get; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue