diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs index 32c03627b..b5ee7f8c1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/trace/MshHostTraceListener.cs @@ -3,12 +3,17 @@ Copyright (c) Microsoft Corporation. All rights reserved. --********************************************************************/ using System; using System.IO; -using System.Security.Permissions; using System.Text; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal.Host; +#if CORECLR +using Microsoft.PowerShell.CoreClr.Stubs; +#else +using System.Security.Permissions; +#endif + namespace Microsoft.PowerShell.Commands { ///