From b400ba368811ac0221632457669dff5203940616 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 21 Jul 2016 14:20:24 -0700 Subject: [PATCH] Use CORECLR to guard analysis progress record --- src/System.Management.Automation/engine/CommandDiscovery.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/System.Management.Automation/engine/CommandDiscovery.cs b/src/System.Management.Automation/engine/CommandDiscovery.cs index e56dbc57e5..c69a72358c 100644 --- a/src/System.Management.Automation/engine/CommandDiscovery.cs +++ b/src/System.Management.Automation/engine/CommandDiscovery.cs @@ -1321,14 +1321,16 @@ namespace System.Management.Automation } } + // TODO: this causes AppVeyor builds to fail due to invalid XML being output +#if !CORECLR // Close the progress pane that may have popped up from analyzing UNC paths. - // Porting note: we don't like this message - if (!Platform.IsCore && context.CurrentCommandProcessor != null) + if (context.CurrentCommandProcessor != null) { ProgressRecord analysisProgress = new ProgressRecord(0, Modules.ScriptAnalysisPreparing, " "); analysisProgress.RecordType = ProgressRecordType.Completed; context.CurrentCommandProcessor.CommandRuntime.WriteProgress(analysisProgress); } +#endif } } }