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 } } }