From 52621adba8ff13735878344f5a44dee11fc5eb3a Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 2 Jun 2016 13:44:07 -0700 Subject: [PATCH] Use Security.Permissions stub --- .../commands/utility/trace/MshHostTraceListener.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { ///