diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs
index 5c67e1899..60653a6de 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System;
+using System;
using System.Management.Automation;
using System.Runtime.InteropServices;
using System.IO;
@@ -252,5 +251,4 @@ namespace Microsoft.PowerShell.Commands
[DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
internal static extern uint SHEmptyRecycleBin(IntPtr hwnd, string pszRootPath, RecycleFlags dwFlags);
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs
index 6c77912b9..63669c7e5 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -33,5 +32,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
index 978a492d9..88a2ee2b1 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -7385,5 +7384,3 @@ $result
#endregion
}//End namespace
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
index 4473fb52f..15059f3e7 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -1632,5 +1631,3 @@ namespace Microsoft.PowerShell.Commands
}//Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs
index 99ab75198..9db034e2c 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System;
+using System;
using System.Management.Automation;
using System.Collections.Generic;
using System.Windows.Forms;
@@ -201,5 +200,4 @@ namespace Microsoft.PowerShell.Commands
return result;
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs
index aedba2dbd..366b6274d 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -27,5 +26,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
index e3aad4779..c2e6736f1 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -469,5 +468,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
index 8af70ed1c..e693b0f69 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -277,5 +276,3 @@ namespace Microsoft.PowerShell.Commands
#endregion
}//Microsoft.Powershell.commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
index 68206ef9a..904d4a909 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -299,5 +298,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Command code
}//InvokeWMIObject
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
index 80d9f0235..a3be5e099 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -217,5 +216,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
index b135fbc2f..706196dc6 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemoveWMIObjectCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -172,5 +171,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Command code
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs
index b8ab72dae..b5ae078fb 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -33,5 +32,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
index 8dcd5e72b..d83d4b870 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System;
+using System;
using System.Management.Automation;
using System.Collections.Generic;
using System.Globalization;
@@ -419,5 +418,4 @@ EndSelection:<<<<<<<<4";
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs
index 84317267a..f43d604c7 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -194,5 +193,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Command code
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs
index bf1c14d2b..3754775dc 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -104,5 +103,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs
index 229d8a201..b0b105dc0 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -94,5 +93,3 @@ namespace Microsoft.PowerShell.Commands
} // namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
index af5295934..21f4c6e7d 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -2112,5 +2111,3 @@ namespace Microsoft.PowerShell.Commands
} // HandleThrottleComplete
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
index d5c16a2f2..3f300bea7 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************--
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -478,5 +477,3 @@ namespace Microsoft.PowerShell.Commands
#endregion
}//Microsoft.Powershell.commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Management/project.json b/src/Microsoft.PowerShell.Commands.Management/project.json
index 97c855f81..8ceb0ff97 100644
--- a/src/Microsoft.PowerShell.Commands.Management/project.json
+++ b/src/Microsoft.PowerShell.Commands.Management/project.json
@@ -5,8 +5,7 @@
"buildOptions": {
"warningsAsErrors": true,
- "allowUnsafe": true,
- "compile": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ]
+ "allowUnsafe": true
},
"dependencies": {
@@ -17,7 +16,31 @@
"netstandard1.5": {
"imports": [ "dnxcore50" ],
"buildOptions": {
- "define": [ "CORECLR" ]
+ "define": [ "CORECLR" ],
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ],
+ "exclude": [
+ "commands/management/ClearRecycleBinCommand.cs",
+ "commands/management/CommitTransactionCommand.cs",
+ "commands/management/Computer.cs",
+ "commands/management/Eventlog.cs",
+ "commands/management/GetClipboardCommand.cs",
+ "commands/management/GetTransactionCommand.cs",
+ "commands/management/GetWMIObjectCommand.cs",
+ "commands/management/Hotfix.cs",
+ "commands/management/InvokeWMIMethodCommand.cs",
+ "commands/management/RegisterWMIEventCommand.cs",
+ "commands/management/RemoveWMIObjectCommand.cs",
+ "commands/management/RollbackTransactionCommand.cs",
+ "commands/management/SetClipboardCommand.cs",
+ "commands/management/SetWMIInstanceCommand.cs",
+ "commands/management/StartTransactionCommand.cs",
+ "commands/management/UseTransactionCommand.cs",
+ "commands/management/WMIHelper.cs",
+ "commands/management/WebServiceProxy.cs",
+ "singleshell/installer/MshManagementMshSnapin.cs"
+ ]
+ }
},
"dependencies": {
"System.ServiceProcess.ServiceController": "4.1.0-rc2-24103",
@@ -25,6 +48,11 @@
}
},
"net451": {
+ "buildOptions": {
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Management/*.cs" ]
+ }
+ },
"frameworkAssemblies": {
"System.ServiceProcess": "",
"System.Windows.Forms": "",
@@ -32,7 +60,7 @@
"System.Web.Services": ""
},
"dependencies": {
- "Microsoft.WSMan.Management": "1.0.0"
+ "Microsoft.WSMan.Management": "1.0.0"
}
}
}
diff --git a/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs b/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs
index 526fb6ebe..49166075b 100644
--- a/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/singleshell/installer/MshManagementMshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -92,5 +91,3 @@ namespace Microsoft.PowerShell
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs
index c46519159..03cd917ed 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -57,5 +56,4 @@ namespace Microsoft.PowerShell.Commands
return HostUtilities.GetMaxLines(srcString, 10);
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs
index 95d49653f..093cd12df 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -39,5 +38,4 @@ namespace Microsoft.PowerShell.Commands
return objectResult == null ? String.Empty : ColumnInfo.LimitString(objectResult.ToString());
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs
index 968aa94da..b51748868 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -60,5 +59,4 @@ namespace Microsoft.PowerShell.Commands
return staleObject;
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs
index de3982895..5e89c754c 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -72,5 +71,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs
index 1d6ce8830..bfc3a5396 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -530,5 +529,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs
index 5d8cd0802..635af783b 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -308,5 +307,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ScalarTypeColumnInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ScalarTypeColumnInfo.cs
index 989116e5e..2ee294cca 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ScalarTypeColumnInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/ScalarTypeColumnInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -77,5 +76,4 @@ namespace Microsoft.PowerShell.Commands
return index++;
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/TableView.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/TableView.cs
index a05506e32..7822caf5c 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/TableView.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/OutGridView/TableView.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -282,5 +281,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
index 97393fa21..018f907f9 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -332,5 +331,3 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs
index 77f0093fb..11c537537 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/out-printer.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -75,5 +74,3 @@ namespace Microsoft.PowerShell.Commands
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs
index d24ce82ec..115f44d69 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -2032,7 +2031,9 @@ namespace Microsoft.PowerShell.Commands
return result.ToString();
}
- private const string SectionSeparator = "\r\n##############################################################################\r\n";
+ private const string SectionSeparator = @"
+##############################################################################
+";
private void GenerateSectionSeparator(TextWriter writer)
{
@@ -2079,7 +2080,14 @@ namespace Microsoft.PowerShell.Commands
#region Generating header of a proxy module
- private const string TopCommentTemplate = "\r\n<#\r\n # {0}\r\n # {1}\r\n # {2}\r\n # {3}\r\n #>\r\n";
+ private const string TopCommentTemplate = @"
+<#
+ # {0}
+ # {1}
+ # {2}
+ # {3}
+ #>
+ ";
private void GenerateTopComment(TextWriter writer)
{
@@ -2395,7 +2403,8 @@ function Get-PSImplicitRemotingSession
-ErrorAction SilentlyContinue )
}}
if (($script:PSSession -ne $null) -and ($script:PSSession.Runspace.RunspaceStateInfo.State -eq 'Disconnected'))
- {{ # If we are handed a disconnected session, try re-connecting it before creating a new session.
+ {{
+ # If we are handed a disconnected session, try re-connecting it before creating a new session.
Set-PSImplicitRemotingSession `
(& $script:ConnectPSSession `
-Session $script:PSSession `
@@ -2847,7 +2856,12 @@ function Get-PSImplicitRemotingClientSideParameters
}}
Process {{ {6} }}
End {{ {7} }}
-" + "\r\n # .ForwardHelpTargetName {1}\r\n # .ForwardHelpCategory {5}\r\n # .RemoteHelpRunspace PSSession\r\n}}\r\n ";
+
+ # .ForwardHelpTargetName {1}
+ # .ForwardHelpCategory {5}
+ # .RemoteHelpRunspace PSSession
+}}
+ ";
private void GenerateCommandProxy(TextWriter writer, CommandMetadata commandMetadata)
{
@@ -3143,4 +3157,3 @@ function Get-PSImplicitRemotingClientSideParameters
}
}
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs
index d7aa65d82..1e691675d 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Send-MailMessage.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -549,5 +548,4 @@ namespace Microsoft.PowerShell.Commands
}
#endregion
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs
index 162cfd3ae..2614de1d0 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands
@@ -694,5 +693,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs
index 260165cc3..577d805f9 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandCommandInfo.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandExtension
@@ -153,5 +152,4 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension
///
public ICollection ParameterSets { get; private set; }
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs
index bc028672b..81dd4e572 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandModuleInfo.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandExtension
@@ -59,5 +58,4 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension
///
public string Name { get; private set; }
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs
index a5638ae8c..50961f1c0 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterInfo.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandExtension
@@ -111,5 +110,4 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension
///
public int Position { get; private set; }
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs
index 0f0be2b54..4a61dac7b 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandExtension
@@ -75,5 +74,4 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension
///
public ICollection Parameters { get; private set; }
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs
index 7ee008bab..af40834a2 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandParameterType.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands.ShowCommandExtension
@@ -162,5 +161,4 @@ namespace Microsoft.PowerShell.Commands.ShowCommandExtension
///
public ArrayList EnumValues { get; private set; }
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs
index c3b4b0a2d..3e5acfa98 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommandProxy.cs
@@ -1,7 +1,6 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright © Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
namespace Microsoft.PowerShell.Commands
@@ -196,5 +195,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/BasicHtmlWebResponseObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/BasicHtmlWebResponseObject.cs
index 5d48a73e2..d5b3d1cd8 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/BasicHtmlWebResponseObject.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/BasicHtmlWebResponseObject.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -270,5 +269,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Methods
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ContentHelper.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ContentHelper.cs
index 42da7742d..e2b0f76f1 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ContentHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/ContentHelper.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -207,5 +206,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Internal Helper Methods
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/HtmlWebResponseObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/HtmlWebResponseObject.cs
index 6267602de..ee5e174a8 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/HtmlWebResponseObject.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/HtmlWebResponseObject.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -551,5 +550,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeRestMethodCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeRestMethodCommand.cs
index b4765f0ba..31c2748b2 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeRestMethodCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeRestMethodCommand.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -17,7 +16,7 @@ namespace Microsoft.PowerShell.Commands
/// The Invoke-RestMethod command
/// This command makes an HTTP or HTTPS request to a web service,
/// and returns the response in an appropriate way.
- /// Intended to work against the wide spectrum of "RESTful" web services
+ /// Intended to work against the wide spectrum of “RESTful” web services
/// currently deployed across the web.
///
[Cmdlet(VerbsLifecycle.Invoke, "RestMethod", HelpUri = "http://go.microsoft.com/fwlink/?LinkID=217034")]
@@ -373,5 +372,3 @@ namespace Microsoft.PowerShell.Commands
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeWebRequestCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeWebRequestCommand.cs
index 37c210882..beb9819c2 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeWebRequestCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/InvokeWebRequestCommand.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -62,5 +61,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Virtual Method Overrides
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObjectTypeResolver.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObjectTypeResolver.cs
index 070033082..a279a6df1 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObjectTypeResolver.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/JsonObjectTypeResolver.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -28,5 +27,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs
index 4bafc0599..e513f1216 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/PSUserAgent.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -175,5 +174,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs
index 5c7bcd515..edd1ff6af 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -493,5 +492,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Static Methods
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestPSCmdlet.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestPSCmdlet.cs
index 0111bc81d..041147285 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestPSCmdlet.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestPSCmdlet.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -1357,5 +1356,3 @@ namespace Microsoft.PowerShell.Commands
#endregion private State class
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs
index c82b71552..a8a87eeee 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebRequestSession.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -99,5 +98,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseHelper.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseHelper.cs
index e413d27ce..d8afb0a7c 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseHelper.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -72,5 +71,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObject.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObject.cs
index 2e896419a..7791ad00c 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObject.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObject.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -191,5 +190,3 @@ namespace Microsoft.PowerShell.Commands
#endregion Methods
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObjectFactory.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObjectFactory.cs
index 68c791266..e2019ae76 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObjectFactory.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/WebResponseObjectFactory.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -39,5 +38,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs
index 15c6a95d4..c992b38e4 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/convert-HTML.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -624,5 +623,3 @@ namespace Microsoft.PowerShell.Commands
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/update-list.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/update-list.cs
index 2fc2a113f..5e8a72a53 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/update-list.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/update-list.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -215,5 +214,3 @@ namespace Microsoft.PowerShell.Commands
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Commands.Utility/project.json b/src/Microsoft.PowerShell.Commands.Utility/project.json
index 1f36dd7d1..2fb1899e6 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/project.json
+++ b/src/Microsoft.PowerShell.Commands.Utility/project.json
@@ -5,8 +5,7 @@
"buildOptions": {
"warningsAsErrors": true,
- "allowUnsafe": true,
- "compile": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ]
+ "allowUnsafe": true
},
"dependencies": {
@@ -16,7 +15,47 @@
"frameworks": {
"netstandard1.5": {
"buildOptions": {
- "define": [ "CORECLR" ]
+ "define": [ "CORECLR" ],
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ],
+ "exclude": [
+ "commands/utility/FormatAndOutput/OutGridView/ColumnInfo.cs",
+ "commands/utility/FormatAndOutput/OutGridView/ExpressionColumnInfo.cs",
+ "commands/utility/FormatAndOutput/OutGridView/HeaderInfo.cs",
+ "commands/utility/FormatAndOutput/OutGridView/OriginalColumnInfo.cs",
+ "commands/utility/FormatAndOutput/OutGridView/OutGridViewCommand.cs",
+ "commands/utility/FormatAndOutput/OutGridView/OutWindowProxy.cs",
+ "commands/utility/FormatAndOutput/OutGridView/ScalarTypeColumnInfo.cs",
+ "commands/utility/FormatAndOutput/OutGridView/TableView.cs",
+ "commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs",
+ "commands/utility/FormatAndOutput/out-printer/out-printer.cs",
+ "commands/utility/ImplicitRemotingCommands.cs",
+ "commands/utility/Send-MailMessage.cs",
+ "commands/utility/ShowCommand/ShowCommand.cs",
+ "commands/utility/ShowCommand/ShowCommandCommandInfo.cs",
+ "commands/utility/ShowCommand/ShowCommandModuleInfo.cs",
+ "commands/utility/ShowCommand/ShowCommandParameterInfo.cs",
+ "commands/utility/ShowCommand/ShowCommandParameterSetInfo.cs",
+ "commands/utility/ShowCommand/ShowCommandParameterType.cs",
+ "commands/utility/ShowCommand/ShowCommandProxy.cs",
+ "commands/utility/WebCmdlet/BasicHtmlWebResponseObject.cs",
+ "commands/utility/WebCmdlet/ContentHelper.cs",
+ "commands/utility/WebCmdlet/HtmlWebResponseObject.cs",
+ "commands/utility/WebCmdlet/InvokeRestMethodCommand.cs",
+ "commands/utility/WebCmdlet/InvokeWebRequestCommand.cs",
+ "commands/utility/WebCmdlet/JsonObjectTypeResolver.cs",
+ "commands/utility/WebCmdlet/PSUserAgent.cs",
+ "commands/utility/WebCmdlet/StreamHelper.cs",
+ "commands/utility/WebCmdlet/WebRequestPSCmdlet.cs",
+ "commands/utility/WebCmdlet/WebRequestSession.cs",
+ "commands/utility/WebCmdlet/WebResponseHelper.cs",
+ "commands/utility/WebCmdlet/WebResponseObject.cs",
+ "commands/utility/WebCmdlet/WebResponseObjectFactory.cs",
+ "commands/utility/convert-HTML.cs",
+ "commands/utility/update-list.cs",
+ "singleshell/installer/MshUtilityMshSnapin.cs"
+ ]
+ }
},
"imports": [ "dnxcore50", "portable-net45+win8" ],
"dependencies": {
@@ -26,6 +65,11 @@
}
},
"net451": {
+ "buildOptions": {
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Commands.Utility/*.cs" ]
+ }
+ },
"frameworkAssemblies": {
"System.Drawing": "",
"System.Web": "",
diff --git a/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs b/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs
index c52f0e7a7..9920e6b9c 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/singleshell/installer/MshUtilityMshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -92,5 +91,3 @@ namespace Microsoft.PowerShell
}
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Security/project.json b/src/Microsoft.PowerShell.Security/project.json
index fe0710e3b..28d548fed 100644
--- a/src/Microsoft.PowerShell.Security/project.json
+++ b/src/Microsoft.PowerShell.Security/project.json
@@ -5,8 +5,7 @@
"buildOptions": {
"warningsAsErrors": true,
- "allowUnsafe": true,
- "compile": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ]
+ "allowUnsafe": true
},
"dependencies": {
@@ -17,10 +16,23 @@
"netstandard1.5": {
"imports": [ "dnxcore50" ],
"buildOptions": {
- "define": [ "CORECLR" ]
+ "define": [ "CORECLR" ],
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ],
+ "exclude": [
+ "security/CertificateCommands.cs",
+ "security/CmsCommands.cs",
+ "singleshell/installer/MshSecurityMshSnapin.cs"
+ ]
+ }
}
},
"net451": {
+ "buildOptions": {
+ "compile": {
+ "include": [ "../windows-build/gen/Microsoft.PowerShell.Security/*.cs" ]
+ }
+ }
}
}
}
diff --git a/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs b/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs
index 994cb634b..e40496766 100644
--- a/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -240,5 +239,3 @@ namespace Microsoft.PowerShell.Commands
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
index 0fce7622f..48df4fc3c 100644
--- a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -588,5 +587,3 @@ namespace Microsoft.PowerShell.Commands
}
}
-
-#endif
diff --git a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
index 2721d2d6f..ca07bc89a 100644
--- a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
+++ b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -92,5 +91,3 @@ namespace Microsoft.PowerShell
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
index 6bf2ee034..e013baef1 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
+// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
//
// This file has been generated
// by D:\bluedev\admin\monad\src\cimSupport\cmdletization\xml\generate.ps1
@@ -1796,5 +1795,3 @@ namespace Microsoft.PowerShell.Cmdletization.Xml {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
index a6c5a5e60..213a12e86 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
+// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
//
// This file has been generated
// by D:\bluedev\admin\monad\src\cimSupport\cmdletization\xml\generate.ps1
@@ -7756,5 +7755,3 @@ namespace Microsoft.PowerShell.Cmdletization.Xml {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/CodeMethods.cs b/src/System.Management.Automation/engine/CodeMethods.cs
index 7c6060009..68e29b31e 100644
--- a/src/System.Management.Automation/engine/CodeMethods.cs
+++ b/src/System.Management.Automation/engine/CodeMethods.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -132,5 +131,3 @@ namespace Microsoft.PowerShell
#endregion
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ArgBuilder.cs
index f259f1cef..548fed6d9 100644
--- a/src/System.Management.Automation/engine/ComInterop/ArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -44,5 +43,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs
index 3057cc896..d0939bfe9 100644
--- a/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/BoolArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -47,5 +46,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs b/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs
index 535dd0fb6..b36efe37f 100644
--- a/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs
+++ b/src/System.Management.Automation/engine/ComInterop/BoundDispEvent.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -100,5 +99,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs b/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs
index 13f6aca2e..1be7f3a41 100644
--- a/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs
+++ b/src/System.Management.Automation/engine/ComInterop/CollectionExtensions.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -39,5 +38,3 @@ namespace System.Management.Automation.ComInterop {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComBinder.cs b/src/System.Management.Automation/engine/ComInterop/ComBinder.cs
index 0ab529f53..adedd7928 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComBinder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComBinder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -374,5 +373,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs b/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs
index 19d736281..f5a1ca3ae 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComBinderHelpers.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -132,5 +131,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs
index 939358b2c..86849c11d 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComClassMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -39,5 +38,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComDispIds.cs b/src/System.Management.Automation/engine/ComInterop/ComDispIds.cs
index 55825e0be..c1332c0e7 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComDispIds.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComDispIds.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -15,5 +14,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs
index 7f8653ca4..3c1238e06 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComEventDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -16,5 +15,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs
index d5ddcb533..5e2eb2530 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComEventSink.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -319,5 +318,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs
index c5c515422..93e433ee2 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComEventSinkProxy.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -117,5 +116,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs b/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs
index 4a4ea0ecc..ee74a3a6c 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComEventSinksContainer.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -70,5 +69,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs
index 437c5332b..1e2b0f41e 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComFallbackMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -70,5 +69,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComHresults.cs b/src/System.Management.Automation/engine/ComInterop/ComHresults.cs
index 1ca681678..951364f03 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComHresults.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComHresults.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -37,5 +36,3 @@ namespace System.Management.Automation.ComInterop {
}
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComInterop.cs b/src/System.Management.Automation/engine/ComInterop/ComInterop.cs
index ff5ee3ce3..2d5b445a5 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComInterop.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComInterop.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -83,5 +82,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs b/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs
index 884ab803e..2e9ad0143 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComInvokeAction.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -95,5 +94,3 @@ namespace System.Management.Automation.ComInterop {
}
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs b/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs
index 27fda6001..f5588edb6 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComInvokeBinder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -529,5 +528,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs
index 1e29f549c..09be6a229 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -64,5 +63,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs
index 731e806c6..3433e3a82 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComMethodDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -122,5 +121,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComObject.cs b/src/System.Management.Automation/engine/ComInterop/ComObject.cs
index fda5efb0f..72feba2a6 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -126,5 +125,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs
index 13b57ec1a..097ab7c1e 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComParamDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -155,5 +154,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
index 59c2b0dbe..c43e5fe94 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComRuntimeHelpers.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -766,5 +765,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComType.cs b/src/System.Management.Automation/engine/ComInterop/ComType.cs
index bd6bb75de..916e59373 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComType.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComType.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -16,5 +15,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs
index 9f30a3de9..62e56f7a2 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeClassDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -83,5 +82,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs
index 8928119fa..a76b00180 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -221,5 +220,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs
index d14290050..a2db280bd 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeEnumDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -92,5 +91,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs
index d56a0d430..8313529a3 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeLibDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -226,5 +225,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs
index d43893de2..39ea1e7b7 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeLibInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -56,5 +55,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ComTypeLibMemberDesc.cs b/src/System.Management.Automation/engine/ComInterop/ComTypeLibMemberDesc.cs
index 5fff34b71..5bca5cbb7 100644
--- a/src/System.Management.Automation/engine/ComInterop/ComTypeLibMemberDesc.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ComTypeLibMemberDesc.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -23,5 +22,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs
index 59cd849db..e40f25476 100644
--- a/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ConversionArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -40,5 +39,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs
index 180d956c9..7a881108e 100644
--- a/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ConvertArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -35,5 +34,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs
index 0ccac5030..351610caa 100644
--- a/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ConvertibleArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -35,5 +34,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs
index 54deed6d2..f3ecb9f5f 100644
--- a/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/CurrencyArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -54,5 +53,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs
index 392b328c3..e36b60db5 100644
--- a/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/DateTimeArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -45,5 +44,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/DispCallable.cs b/src/System.Management.Automation/engine/ComInterop/DispCallable.cs
index 729a0e6a0..dfe8e615f 100644
--- a/src/System.Management.Automation/engine/ComInterop/DispCallable.cs
+++ b/src/System.Management.Automation/engine/ComInterop/DispCallable.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -68,5 +67,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs
index 0bc092256..f2280c79c 100644
--- a/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/DispCallableMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -139,5 +138,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs
index de8eae0ea..ae543f809 100644
--- a/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/DispatchArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -80,5 +79,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs
index 92231dec8..fdcf32f9c 100644
--- a/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ErrorArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -46,5 +45,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/Errors.cs b/src/System.Management.Automation/engine/ComInterop/Errors.cs
index 93346edf9..072311322 100644
--- a/src/System.Management.Automation/engine/ComInterop/Errors.cs
+++ b/src/System.Management.Automation/engine/ComInterop/Errors.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -242,5 +241,3 @@ namespace System.Management.Automation.ComInterop {
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs b/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs
index 81d0744e1..4a7f97ad3 100644
--- a/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs
+++ b/src/System.Management.Automation/engine/ComInterop/ExcepInfo.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -101,5 +100,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/Helpers.cs b/src/System.Management.Automation/engine/ComInterop/Helpers.cs
index 462ce1169..20d903ef3 100644
--- a/src/System.Management.Automation/engine/ComInterop/Helpers.cs
+++ b/src/System.Management.Automation/engine/ComInterop/Helpers.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -25,5 +24,3 @@ namespace System.Management.Automation.ComInterop {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs b/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs
index 9bfc8b4da..7b41bfc59 100644
--- a/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/IDispatchComObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -630,5 +629,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs
index 8f1df754d..3aef3cb4f 100644
--- a/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/IDispatchMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -319,5 +318,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs b/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs
index 294b01b42..be7cce088 100644
--- a/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/IPseudoComObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -18,5 +17,3 @@ namespace System.Management.Automation.ComInterop {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs
index e4ecf2088..08d7771e1 100644
--- a/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/NullArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -29,5 +28,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs
index f86b9b729..065dcce1d 100644
--- a/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/SimpleArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -45,5 +44,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs b/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs
index c34a6c8af..1b28e7fe8 100644
--- a/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs
+++ b/src/System.Management.Automation/engine/ComInterop/SplatCallSite.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -51,5 +50,3 @@ namespace System.Management.Automation.ComInterop {
}
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs
index 51e9630ca..b42e04213 100644
--- a/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/StringArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -79,5 +78,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs
index 85ab23159..08b485e62 100644
--- a/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/TypeEnumMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -75,5 +74,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/TypeLibInfoMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/TypeLibInfoMetaObject.cs
index b75f50fb4..74fcd7c82 100644
--- a/src/System.Management.Automation/engine/ComInterop/TypeLibInfoMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/TypeLibInfoMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -63,5 +62,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/TypeLibMetaObject.cs b/src/System.Management.Automation/engine/ComInterop/TypeLibMetaObject.cs
index 39a10f83f..0c976abb8 100644
--- a/src/System.Management.Automation/engine/ComInterop/TypeLibMetaObject.cs
+++ b/src/System.Management.Automation/engine/ComInterop/TypeLibMetaObject.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -76,5 +75,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs b/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs
index b24f896da..374c48dd9 100644
--- a/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs
+++ b/src/System.Management.Automation/engine/ComInterop/TypeUtils.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -245,5 +244,3 @@ namespace System.Management.Automation.ComInterop {
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs
index 66295226a..6b429462f 100644
--- a/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/UnknownArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -80,5 +79,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs b/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs
index 88c4feb43..9f727d4a0 100644
--- a/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs
+++ b/src/System.Management.Automation/engine/ComInterop/VarEnumSelector.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -516,5 +515,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/Variant.cs b/src/System.Management.Automation/engine/ComInterop/Variant.cs
index 4791083e4..586bdfc3e 100644
--- a/src/System.Management.Automation/engine/ComInterop/Variant.cs
+++ b/src/System.Management.Automation/engine/ComInterop/Variant.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -842,5 +841,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs b/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs
index 6dae9f984..69ab54d8c 100644
--- a/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/VariantArgBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -71,5 +70,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/VariantArray.cs b/src/System.Management.Automation/engine/ComInterop/VariantArray.cs
index 02cd757bd..63e593475 100644
--- a/src/System.Management.Automation/engine/ComInterop/VariantArray.cs
+++ b/src/System.Management.Automation/engine/ComInterop/VariantArray.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -98,5 +97,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs b/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs
index eb7df589b..9a5cadef1 100644
--- a/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs
+++ b/src/System.Management.Automation/engine/ComInterop/VariantBuilder.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -162,5 +161,3 @@ namespace System.Management.Automation.ComInterop {
#endif
-
-#endif
diff --git a/src/System.Management.Automation/engine/ExtraAdapter.cs b/src/System.Management.Automation/engine/ExtraAdapter.cs
index 0982ff8ad..cf84d41de 100644
--- a/src/System.Management.Automation/engine/ExtraAdapter.cs
+++ b/src/System.Management.Automation/engine/ExtraAdapter.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -597,5 +596,3 @@ namespace System.Management.Automation
#endregion method
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
index 5b24ac797..7f4284b54 100644
--- a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
+++ b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -1249,5 +1248,3 @@ namespace System.Management.Automation
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
index 9ee08e260..4415995ee 100644
--- a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
+++ b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -777,5 +776,3 @@ namespace System.Management.Automation
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs b/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs
index b5058a6ae..23899138e 100644
--- a/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs
+++ b/src/System.Management.Automation/engine/PSMI/PSNegotiationData.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Runtime.InteropServices;
using Microsoft.Management.Infrastructure;
@@ -25,5 +24,4 @@ namespace System.Management.Automation
return c;
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
index 8194fd372..21b8a12f3 100644
--- a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
+++ b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
@@ -60,5 +59,4 @@ namespace System.Management.Automation
[SuppressMessage("Microsoft.Reliability", "CA2006:UseSafeHandleToEncapsulateNativeResources")]
internal IntPtr Value;
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
index 8d9919e1f..8d35a9838 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -908,5 +907,4 @@ namespace System.Management.Automation
#endregion
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
index 50b9ea2f0..7f1401d4f 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -160,5 +159,4 @@ namespace System.Management.Automation
#endregion private_fields
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs
index 110ade4f3..5b954fd2f 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/MISerializer.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -41,5 +40,4 @@ namespace System.Management.Automation
return internalSerializer.Serialize(source);
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
index 5d1a460d5..b80fa6e09 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -128,5 +127,4 @@ namespace System.Management.Automation
#endregion private
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs
index d8c0be05a..48c21674f 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/PSMISerializer.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-using System.IO;
+using System.IO;
using System.Linq;
using System.Management.Automation.Internal;
using System.Management.Automation.Language;
@@ -56,5 +55,4 @@ namespace System.Management.Automation
return serializer.Serialize(source);
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/TransactedString.cs b/src/System.Management.Automation/engine/TransactedString.cs
index fd30e601d..ba4021e8e 100644
--- a/src/System.Management.Automation/engine/TransactedString.cs
+++ b/src/System.Management.Automation/engine/TransactedString.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -206,5 +205,3 @@ namespace Microsoft.PowerShell.Commands.Management
}
} // namespace Microsoft.Test.Management.Automation
-
-#endif
diff --git a/src/System.Management.Automation/engine/TransactionManager.cs b/src/System.Management.Automation/engine/TransactionManager.cs
index 731175dc6..87288e653 100644
--- a/src/System.Management.Automation/engine/TransactionManager.cs
+++ b/src/System.Management.Automation/engine/TransactionManager.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
#pragma warning disable 1634, 1691
/********************************************************************++
@@ -762,5 +761,3 @@ namespace System.Management.Automation.Internal
}
-
-#endif
diff --git a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
index 1fea216fd..74b4f0519 100644
--- a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
+++ b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
@@ -495,5 +494,4 @@ namespace Microsoft.PowerShell
#endregion
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
index 1e4b2f2bf..f0d6d4c77 100644
--- a/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
+++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -219,5 +218,3 @@ namespace System.Management.Automation
-
-#endif
diff --git a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
index 378a46741..90ffa6e21 100644
--- a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
+++ b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -691,5 +690,3 @@ namespace System.Management.Automation
#endregion Event Message
}
}
-
-#endif
diff --git a/src/System.Management.Automation/namespaces/SafeTransactionHandle.cs b/src/System.Management.Automation/namespaces/SafeTransactionHandle.cs
index db5ca3c85..797193cc6 100644
--- a/src/System.Management.Automation/namespaces/SafeTransactionHandle.cs
+++ b/src/System.Management.Automation/namespaces/SafeTransactionHandle.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
@@ -45,7 +44,7 @@ namespace Microsoft.PowerShell.Commands.Internal
// CommitableTransaction will use DTC APIs under the covers to get KTM transaction manager interface.
// KTM is kernel Transaction Manager to handle file, registry etc and MSDTC provides an integration support
// with KTM to handle transaction across kernel resources and MSDTC resources like SQL, MSMQ etc.
- // We need KTMRM service as well. WinPE doesn?t have these services installed
+ // We need KTMRM service as well. WinPE doesnt have these services installed
if (Utils.IsWinPEHost() || PsUtils.IsRunningOnProcessorArchitectureARM())
{
throw new NotSupportedException(RegistryProviderStrings.NotSupported_KernelTransactions);
@@ -81,5 +80,3 @@ namespace Microsoft.PowerShell.Commands.Internal
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistry.cs b/src/System.Management.Automation/namespaces/TransactedRegistry.cs
index b2f7e19b5..87896a7de 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistry.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistry.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
@@ -133,5 +132,3 @@ namespace Microsoft.PowerShell.Commands.Internal
internal static readonly TransactedRegistryKey CurrentConfig = TransactedRegistryKey.GetBaseKey(BaseRegistryKeys.HKEY_CURRENT_CONFIG);
}
}
-
-#endif
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
index 9f1c3edda..11e7de70e 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
@@ -192,14 +191,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
SafeRegistryHandle nonTxKey = null;
SafeRegistryHandle txKey = null;
- if (!Platform.HasRegistrySupport())
- {
- error = 1;
- }
- else
- {
- error = Win32Native.RegOpenKeyEx(hkey, lpSubKey, ulOptions, samDesired, out nonTxKey);
- }
+ error = Win32Native.RegOpenKeyEx(hkey, lpSubKey, ulOptions, samDesired, out nonTxKey);
// If we got some error on this open, just ignore it and continue on with the handle
// we got on the original RegOpenKeyTransacted.
if (Win32Native.ERROR_SUCCESS == error)
@@ -1969,5 +1961,3 @@ namespace Microsoft.PowerShell.Commands.Internal
}
}
-
-#endif
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
index 584c3aea2..bcb4c4c38 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
@@ -467,5 +466,3 @@ namespace Microsoft.PowerShell.Commands.Internal
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/project.json b/src/System.Management.Automation/project.json
index b5fd0b342..d76b0e9b5 100644
--- a/src/System.Management.Automation/project.json
+++ b/src/System.Management.Automation/project.json
@@ -5,8 +5,7 @@
"buildOptions": {
"warningsAsErrors": true,
- "allowUnsafe": true,
- "compile": [ "../windows-build/gen/System.Management.Automation/*.cs" ]
+ "allowUnsafe": true
},
"configurations": {
@@ -25,7 +24,107 @@
"netstandard1.5": {
"imports": [ "dnxcore50" ],
"buildOptions": {
- "define": [ "CORECLR" ]
+ "define": [ "CORECLR" ],
+ "compile": {
+ "include": [ "../windows-build/gen/System.Management.Automation/*.cs" ],
+ "exclude": [
+ "cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs",
+ "cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs",
+ "engine/CodeMethods.cs",
+ "engine/ComInterop/ArgBuilder.cs",
+ "engine/ComInterop/BoolArgBuilder.cs",
+ "engine/ComInterop/BoundDispEvent.cs",
+ "engine/ComInterop/CollectionExtensions.cs",
+ "engine/ComInterop/ComBinder.cs",
+ "engine/ComInterop/ComBinderHelpers.cs",
+ "engine/ComInterop/ComClassMetaObject.cs",
+ "engine/ComInterop/ComDispIds.cs",
+ "engine/ComInterop/ComEventDesc.cs",
+ "engine/ComInterop/ComEventSink.cs",
+ "engine/ComInterop/ComEventSinkProxy.cs",
+ "engine/ComInterop/ComEventSinksContainer.cs",
+ "engine/ComInterop/ComFallbackMetaObject.cs",
+ "engine/ComInterop/ComHresults.cs",
+ "engine/ComInterop/ComInterop.cs",
+ "engine/ComInterop/ComInvokeAction.cs",
+ "engine/ComInterop/ComInvokeBinder.cs",
+ "engine/ComInterop/ComMetaObject.cs",
+ "engine/ComInterop/ComMethodDesc.cs",
+ "engine/ComInterop/ComObject.cs",
+ "engine/ComInterop/ComParamDesc.cs",
+ "engine/ComInterop/ComRuntimeHelpers.cs",
+ "engine/ComInterop/ComType.cs",
+ "engine/ComInterop/ComTypeClassDesc.cs",
+ "engine/ComInterop/ComTypeDesc.cs",
+ "engine/ComInterop/ComTypeEnumDesc.cs",
+ "engine/ComInterop/ComTypeLibDesc.cs",
+ "engine/ComInterop/ComTypeLibInfo.cs",
+ "engine/ComInterop/ComTypeLibMemberDesc.cs",
+ "engine/ComInterop/ConversionArgBuilder.cs",
+ "engine/ComInterop/ConvertArgBuilder.cs",
+ "engine/ComInterop/ConvertibleArgBuilder.cs",
+ "engine/ComInterop/CurrencyArgBuilder.cs",
+ "engine/ComInterop/DateTimeArgBuilder.cs",
+ "engine/ComInterop/DispCallable.cs",
+ "engine/ComInterop/DispCallableMetaObject.cs",
+ "engine/ComInterop/DispatchArgBuilder.cs",
+ "engine/ComInterop/ErrorArgBuilder.cs",
+ "engine/ComInterop/Errors.cs",
+ "engine/ComInterop/ExcepInfo.cs",
+ "engine/ComInterop/Helpers.cs",
+ "engine/ComInterop/IDispatchComObject.cs",
+ "engine/ComInterop/IDispatchMetaObject.cs",
+ "engine/ComInterop/IPseudoComObject.cs",
+ "engine/ComInterop/NullArgBuilder.cs",
+ "engine/ComInterop/SimpleArgBuilder.cs",
+ "engine/ComInterop/SplatCallSite.cs",
+ "engine/ComInterop/StringArgBuilder.cs",
+ "engine/ComInterop/TypeEnumMetaObject.cs",
+ "engine/ComInterop/TypeLibInfoMetaObject.cs",
+ "engine/ComInterop/TypeLibMetaObject.cs",
+ "engine/ComInterop/TypeUtils.cs",
+ "engine/ComInterop/UnknownArgBuilder.cs",
+ "engine/ComInterop/VarEnumSelector.cs",
+ "engine/ComInterop/Variant.cs",
+ "engine/ComInterop/VariantArgBuilder.cs",
+ "engine/ComInterop/VariantArray.cs",
+ "engine/ComInterop/VariantBuilder.cs",
+ "engine/ExtraAdapter.cs",
+ "engine/ManagementObjectAdapter.cs",
+ "engine/MshObjectTypeDescriptor.cs",
+ "engine/PSMI/PSNegotiationData.cs",
+ "engine/PSMI/PSPowerShellPipeline.cs",
+ "engine/PSMI/Serialization/InternalMISerializer.cs",
+ "engine/PSMI/Serialization/KnownMITypes.cs",
+ "engine/PSMI/Serialization/MISerializer.cs",
+ "engine/PSMI/Serialization/MITypeSerializationInfo.cs",
+ "engine/PSMI/Serialization/PSMISerializer.cs",
+ "engine/TransactedString.cs",
+ "engine/TransactionManager.cs",
+ "engine/hostifaces/NativeCultureResolver.cs",
+ "engine/hostifaces/RunspaceInvoke.cs",
+ "logging/eventlog/EventLogLogProvider.cs",
+ "namespaces/SafeTransactionHandle.cs",
+ "namespaces/TransactedRegistry.cs",
+ "namespaces/TransactedRegistryKey.cs",
+ "namespaces/TransactedRegistrySecurity.cs",
+ "security/wldpNativeMethods.cs",
+ "singleshell/Commands/ConsoleCommands.cs",
+ "singleshell/Commands/MshSnapinCommands.cs",
+ "singleshell/config/RegistryStringResourceIndirect.cs",
+ "singleshell/installer/CustomMshSnapin.cs",
+ "singleshell/installer/MshCoreMshSnapin.cs",
+ "singleshell/installer/MshInstaller.cs",
+ "singleshell/installer/MshSnapin.cs",
+ "singleshell/installer/MshSnapinInstaller.cs",
+ "utils/BackgroundDispatcher.cs",
+ "utils/GraphicalHostReflectionWrapper.cs",
+ "utils/WindowsErrorReporting.cs",
+ "utils/perfCounters/CounterSetInstanceBase.cs",
+ "utils/perfCounters/CounterSetRegistrarBase.cs",
+ "utils/perfCounters/PSPerfCountersMgr.cs"
+ ]
+ }
},
"dependencies": {
"Microsoft.PowerShell.CoreCLR.AssemblyLoadContext": "1.0.0-*",
@@ -64,6 +163,12 @@
}
},
"net451": {
+ "buildOptions": {
+ "compile": {
+ "include": [ "../windows-build/gen/System.Management.Automation/*.cs" ]
+
+ }
+ },
"frameworkAssemblies": {
"System.Runtime": "",
"System.Xml": "",
diff --git a/src/System.Management.Automation/security/wldpNativeMethods.cs b/src/System.Management.Automation/security/wldpNativeMethods.cs
index 4d1a43812..5261cd863 100644
--- a/src/System.Management.Automation/security/wldpNativeMethods.cs
+++ b/src/System.Management.Automation/security/wldpNativeMethods.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
using System;
using System.Management.Automation;
using System.Management.Automation.Internal;
@@ -575,5 +574,4 @@ namespace System.Management.Automation.Security
out IntPtr pszPath);
}
}
-}
-#endif
+}
\ No newline at end of file
diff --git a/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs b/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
index c20a84ef2..92be0ceb8 100644
--- a/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
+++ b/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -605,5 +604,3 @@ namespace Microsoft.PowerShell.Commands
#endregion
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs b/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
index eb41b43b3..cfe5c7721 100644
--- a/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
+++ b/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -858,5 +857,3 @@ namespace Microsoft.PowerShell.Commands
#endregion
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs b/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs
index 59fc89475..0b836a84e 100644
--- a/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs
+++ b/src/System.Management.Automation/singleshell/config/RegistryStringResourceIndirect.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -616,5 +615,3 @@ namespace System.Management.Automation
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/installer/CustomMshSnapin.cs b/src/System.Management.Automation/singleshell/installer/CustomMshSnapin.cs
index 7561274ff..4ca1b6730 100644
--- a/src/System.Management.Automation/singleshell/installer/CustomMshSnapin.cs
+++ b/src/System.Management.Automation/singleshell/installer/CustomMshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -153,5 +152,3 @@ namespace System.Management.Automation
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/installer/MshCoreMshSnapin.cs b/src/System.Management.Automation/singleshell/installer/MshCoreMshSnapin.cs
index 1505647a4..ec52d59e3 100644
--- a/src/System.Management.Automation/singleshell/installer/MshCoreMshSnapin.cs
+++ b/src/System.Management.Automation/singleshell/installer/MshCoreMshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -128,5 +127,3 @@ namespace Microsoft.PowerShell
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/installer/MshInstaller.cs b/src/System.Management.Automation/singleshell/installer/MshInstaller.cs
index 029a4afa5..a20d362b2 100644
--- a/src/System.Management.Automation/singleshell/installer/MshInstaller.cs
+++ b/src/System.Management.Automation/singleshell/installer/MshInstaller.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -219,5 +218,3 @@ namespace System.Management.Automation
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/installer/MshSnapin.cs b/src/System.Management.Automation/singleshell/installer/MshSnapin.cs
index 1a8c227ce..0b80f4318 100644
--- a/src/System.Management.Automation/singleshell/installer/MshSnapin.cs
+++ b/src/System.Management.Automation/singleshell/installer/MshSnapin.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -87,5 +86,3 @@ namespace System.Management.Automation
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/singleshell/installer/MshSnapinInstaller.cs b/src/System.Management.Automation/singleshell/installer/MshSnapinInstaller.cs
index e70cb5641..94c0185e4 100644
--- a/src/System.Management.Automation/singleshell/installer/MshSnapinInstaller.cs
+++ b/src/System.Management.Automation/singleshell/installer/MshSnapinInstaller.cs
@@ -1,4 +1,3 @@
-#if !CORECLR
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -164,5 +163,3 @@ namespace System.Management.Automation
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/BackgroundDispatcher.cs b/src/System.Management.Automation/utils/BackgroundDispatcher.cs
index 4beef2907..00a28e885 100644
--- a/src/System.Management.Automation/utils/BackgroundDispatcher.cs
+++ b/src/System.Management.Automation/utils/BackgroundDispatcher.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
@@ -139,5 +138,3 @@ namespace System.Management.Automation
#endregion
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs b/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs
index 4f71be6c1..b93c7ec62 100644
--- a/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs
+++ b/src/System.Management.Automation/utils/GraphicalHostReflectionWrapper.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-//-----------------------------------------------------------------------
+//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
@@ -224,5 +223,3 @@ namespace System.Management.Automation.Internal
}
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/WindowsErrorReporting.cs b/src/System.Management.Automation/utils/WindowsErrorReporting.cs
index 8d7d7e79d..5d6b8896e 100644
--- a/src/System.Management.Automation/utils/WindowsErrorReporting.cs
+++ b/src/System.Management.Automation/utils/WindowsErrorReporting.cs
@@ -1,8 +1,7 @@
-#if !CORECLR
//
// Copyright (C) Microsoft. All rights reserved.
//
-using System.Diagnostics;
+using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
@@ -130,7 +129,7 @@ namespace System.Management.Automation
HonorRestart = 2,
///
- /// Add the report to the WER queue without notifying the user. The report is queued only-reporting (sending the report to Microsoft) occurs later based on the user's consent level.
+ /// Add the report to the WER queue without notifying the user. The report is queued only—reporting (sending the report to Microsoft) occurs later based on the user's consent level.
///
Queue = 4,
@@ -1044,5 +1043,3 @@ namespace System.Management.Automation
#endregion
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
index 3acd83528..a38e96a7f 100644
--- a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
+++ b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -604,5 +603,3 @@ namespace System.Management.Automation.PerformanceData
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
index c51cb765a..215e0a5a1 100644
--- a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
+++ b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -364,5 +363,3 @@ namespace System.Management.Automation.PerformanceData
}
}
-
-#endif
diff --git a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
index 97061e3f2..a533978e2 100644
--- a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
+++ b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
@@ -1,5 +1,4 @@
-#if !CORECLR
-/********************************************************************++
+/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
@@ -475,5 +474,3 @@ namespace System.Management.Automation.PerformanceData
}
}
-
-#endif