diff --git a/src/Microsoft.PowerShell.PSReadLine/KillYank.cs b/src/Microsoft.PowerShell.PSReadLine/KillYank.cs index ba94cbdbde..651364c78f 100644 --- a/src/Microsoft.PowerShell.PSReadLine/KillYank.cs +++ b/src/Microsoft.PowerShell.PSReadLine/KillYank.cs @@ -6,7 +6,9 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Language; -//using System.Windows.Forms; +#if !CORECLR +using System.Windows.Forms; +#endif namespace Microsoft.PowerShell {