diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterFileInfo.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterFileInfo.cs index 83cf23533..87c629b93 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterFileInfo.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterFileInfo.cs @@ -3,10 +3,10 @@ using System; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.Specialized; using System.ComponentModel; +using System.Diagnostics; namespace Microsoft.PowerShell.Commands.GetCounter { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSample.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSample.cs index 877d37f1f..c2dbb2b21 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSample.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSample.cs @@ -2,14 +2,15 @@ // Licensed under the MIT License. using System; -using System.Reflection; using System.Collections.Generic; -using System.Diagnostics; using System.ComponentModel; -using System.Resources; -using Microsoft.Powershell.Commands.GetCounter.PdhNative; -using System.Globalization; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Reflection; +using System.Resources; + +using Microsoft.Powershell.Commands.GetCounter.PdhNative; namespace Microsoft.PowerShell.Commands.GetCounter { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSet.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSet.cs index c05c5f7ed..acbfc7e9f 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSet.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/CounterSet.cs @@ -3,10 +3,10 @@ using System; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; -using System.Diagnostics; +using System.Collections.Specialized; using System.ComponentModel; +using System.Diagnostics; namespace Microsoft.PowerShell.Commands.GetCounter { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/ExportCounterCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/ExportCounterCommand.cs index fee398230..7a8b1ad76 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/ExportCounterCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/ExportCounterCommand.cs @@ -2,28 +2,29 @@ // Licensed under the MIT License. using System; -using System.Text; -using System.IO; -using System.Xml; -using System.Net; -using System.Management.Automation; -using System.ComponentModel; -using System.Reflection; -using System.Globalization; -using System.Management.Automation.Runspaces; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using System.Net; +using System.Reflection; +using System.Resources; using System.Security; using System.Security.Principal; -using System.Resources; +using System.Text; using System.Threading; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Powershell.Commands.GetCounter.PdhNative; -using Microsoft.PowerShell.Commands.GetCounter; +using System.Xml; + using Microsoft.PowerShell.Commands.Diagnostics.Common; +using Microsoft.PowerShell.Commands.GetCounter; +using Microsoft.Powershell.Commands.GetCounter.PdhNative; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs index feedc344b..873d0b9bb 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/GetCounterCommand.cs @@ -2,28 +2,29 @@ // Licensed under the MIT License. using System; -using System.Text; -using System.IO; -using System.Xml; -using System.Net; -using System.Management.Automation; -using System.ComponentModel; -using System.Reflection; -using System.Globalization; -using System.Management.Automation.Runspaces; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using System.Net; +using System.Reflection; +using System.Resources; using System.Security; using System.Security.Principal; -using System.Resources; +using System.Text; using System.Threading; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Powershell.Commands.GetCounter.PdhNative; -using Microsoft.PowerShell.Commands.GetCounter; +using System.Xml; + using Microsoft.PowerShell.Commands.Diagnostics.Common; +using Microsoft.PowerShell.Commands.GetCounter; +using Microsoft.Powershell.Commands.GetCounter.PdhNative; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs index bf6b91208..fd6a7fb71 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventCommand.cs @@ -2,20 +2,20 @@ // Licensed under the MIT License. using System; -using System.Xml; -using System.Net; -using System.Management.Automation; -using System.Reflection; -using System.Globalization; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics.Eventing.Reader; -using System.Security.Principal; -using System.Resources; +using System.Collections.Specialized; using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.Eventing.Reader; +using System.Globalization; +using System.Management.Automation; +using System.Net; +using System.Reflection; +using System.Resources; +using System.Security.Principal; using System.Text; +using System.Xml; [assembly: CLSCompliant(false)] diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventSnapin.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventSnapin.cs index d5c4e696c..5debeaef1 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventSnapin.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/GetEventSnapin.cs @@ -3,9 +3,9 @@ using System; using System.Collections.Generic; -using System.Text; -using System.Management.Automation; using System.ComponentModel; +using System.Management.Automation; +using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs index 0b34e76d0..e11309397 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/ImportCounterCommand.cs @@ -2,28 +2,29 @@ // Licensed under the MIT License. using System; -using System.Text; -using System.IO; -using System.Xml; -using System.Net; -using System.Management.Automation; -using System.ComponentModel; -using System.Reflection; -using System.Globalization; -using System.Management.Automation.Runspaces; using System.Collections; -using System.Collections.Specialized; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using System.Net; +using System.Reflection; +using System.Resources; using System.Security; using System.Security.Principal; -using System.Resources; +using System.Text; using System.Threading; -using System.Diagnostics.CodeAnalysis; -using Microsoft.Powershell.Commands.GetCounter.PdhNative; -using Microsoft.PowerShell.Commands.GetCounter; +using System.Xml; + using Microsoft.PowerShell.Commands.Diagnostics.Common; +using Microsoft.PowerShell.Commands.GetCounter; +using Microsoft.Powershell.Commands.GetCounter.PdhNative; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/NewWinEventCommand.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/NewWinEventCommand.cs index 55b2a0a49..3f2bfa4ec 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/NewWinEventCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/NewWinEventCommand.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Globalization; -using System.Reflection; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Eventing; using System.Diagnostics.Eventing.Reader; -using System.Resources; -using System.Diagnostics.CodeAnalysis; -using System.Collections.Generic; -using System.Xml; +using System.Globalization; using System.IO; +using System.Management.Automation; +using System.Reflection; +using System.Resources; +using System.Xml; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs index cf3c42f35..0814e1b67 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs @@ -2,13 +2,14 @@ // Licensed under the MIT License. using System; -using System.Diagnostics; -using System.Globalization; -using System.Runtime.InteropServices; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics; +using System.Globalization; +using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; + using Microsoft.PowerShell.Commands.GetCounter; using Microsoft.Win32; diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CimJobException.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CimJobException.cs index 108dc8a66..12331bd9c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CimJobException.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CimJobException.cs @@ -5,7 +5,9 @@ using System; using System.Globalization; using System.Management.Automation; using System.Runtime.Serialization; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CreateInstanceJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CreateInstanceJob.cs index 1808e1363..4690a729e 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CreateInstanceJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/CreateInstanceJob.cs @@ -2,7 +2,9 @@ // Licensed under the MIT License. using System; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/DeleteInstanceJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/DeleteInstanceJob.cs index c32125643..6caf4146d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/DeleteInstanceJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/DeleteInstanceJob.cs @@ -2,7 +2,9 @@ // Licensed under the MIT License. using System; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/EnumerateAssociatedInstancesJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/EnumerateAssociatedInstancesJob.cs index 3a79293c2..440594322 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/EnumerateAssociatedInstancesJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/EnumerateAssociatedInstancesJob.cs @@ -4,7 +4,9 @@ using System; using System.Globalization; using System.Management.Automation; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ExtrinsicMethodInvocationJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ExtrinsicMethodInvocationJob.cs index c7035778b..13c75586f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ExtrinsicMethodInvocationJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ExtrinsicMethodInvocationJob.cs @@ -7,8 +7,10 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Management.Automation; + using Microsoft.Management.Infrastructure; using Microsoft.PowerShell.Cim; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/InstanceMethodInvocationJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/InstanceMethodInvocationJob.cs index eecfafb98..b1c8873d2 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/InstanceMethodInvocationJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/InstanceMethodInvocationJob.cs @@ -2,8 +2,10 @@ // Licensed under the MIT License. using System; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/MethodInvocationJobBase.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/MethodInvocationJobBase.cs index 755b733b9..edb6b2c99 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/MethodInvocationJobBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/MethodInvocationJobBase.cs @@ -6,9 +6,11 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Management.Automation; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using Microsoft.PowerShell.Cim; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ModifyInstanceJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ModifyInstanceJob.cs index 6d61f51a0..13e0630bf 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ModifyInstanceJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/ModifyInstanceJob.cs @@ -3,7 +3,9 @@ using System; using System.Management.Automation; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJob.cs index efe63e2c6..d7648ce80 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJob.cs @@ -4,7 +4,9 @@ using System; using System.Globalization; using System.Text; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJobBase.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJobBase.cs index 7d8d6bee8..c05d9991f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJobBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/QueryJobBase.cs @@ -2,7 +2,9 @@ // Licensed under the MIT License. using System.Management.Automation; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/StaticMethodInvocationJob.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/StaticMethodInvocationJob.cs index f25a9765e..a025ef77d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/StaticMethodInvocationJob.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/StaticMethodInvocationJob.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/TerminatingErrorTracker.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/TerminatingErrorTracker.cs index fe6c27231..15c5d5099 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/TerminatingErrorTracker.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/TerminatingErrorTracker.cs @@ -9,7 +9,9 @@ using System.Management.Automation; using System.Management.Automation.Remoting; using System.Runtime.CompilerServices; using System.Threading; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs index b9e3a493b..84c001262 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimChildJobBase.cs @@ -9,9 +9,11 @@ using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Internal; using System.Threading; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using Microsoft.PowerShell.Cim; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletDefinitionContext.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletDefinitionContext.cs index c2f105281..a7fb3465b 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletDefinitionContext.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletDefinitionContext.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Globalization; using System.Management.Automation; + using Microsoft.Management.Infrastructure.Options; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletInvocationContext.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletInvocationContext.cs index 9bb778ffb..f5bb541c0 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletInvocationContext.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimCmdletInvocationContext.cs @@ -3,7 +3,9 @@ using System; using System.Management.Automation; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimConverter.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimConverter.cs index 9ff049a1f..abcb5d33f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimConverter.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimConverter.cs @@ -10,13 +10,15 @@ using System.Net; using System.Net.Mail; using System.Net.NetworkInformation; using System.Reflection; +using System.Runtime.InteropServices; using System.Security; using System.Security.AccessControl; using System.Security.Cryptography.X509Certificates; using System.Xml; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; -using System.Runtime.InteropServices; // TODO/FIXME: Move this class to src/cimSupport/other directory (to map to the namespace it lives in and functionality it implements [cmdletization independent]) diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimJobContext.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimJobContext.cs index ee68da063..3603b3395 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimJobContext.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimJobContext.cs @@ -4,6 +4,7 @@ using System; using System.Globalization; using System.Management.Automation; + using Microsoft.Management.Infrastructure; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimOperationOptionsHelper.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimOperationOptionsHelper.cs index 23d03a5ef..f6eb6b994 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimOperationOptionsHelper.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimOperationOptionsHelper.cs @@ -5,9 +5,11 @@ using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using Microsoft.PowerShell.Cim; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimWrapper.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimWrapper.cs index aa41c4f75..ad37e321a 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimWrapper.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/cimWrapper.cs @@ -8,7 +8,9 @@ using System.Globalization; using System.Management.Automation; using System.Runtime.CompilerServices; using System.Threading; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/clientSideQuery.cs b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/clientSideQuery.cs index 084d61eca..e27387f9c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/clientSideQuery.cs +++ b/src/Microsoft.PowerShell.Commands.Management/cimSupport/cmdletization/cim/clientSideQuery.cs @@ -7,8 +7,10 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Management.Automation; + using Microsoft.Management.Infrastructure; using Microsoft.PowerShell.Cim; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cmdletization.Cim diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs index a7df03dd9..25377c7a7 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/AddContentCommand.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Management.Automation; using System.Management.Automation.Internal; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs index df79af197..b9086b99b 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearContentCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs index 6cb43d03d..c42c3fa19 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs index 47d0cfe75..78aecd0e1 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ClearRecycleBinCommand.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; using System.Management.Automation; using System.Runtime.InteropServices; -using System.IO; -using System.Globalization; -using System.ComponentModel; using System.Text.RegularExpressions; -using System.Diagnostics.CodeAnalysis; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs index e304d4866..1b89f0be1 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CombinePathCommand.cs @@ -2,9 +2,10 @@ // Licensed under the MIT License. using System; -using System.Text; using System.Collections.ObjectModel; using System.Management.Automation; +using System.Text; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs index 642363e57..32eeb4438 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CommitTransactionCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ContentCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ContentCommandBase.cs index 41c4b5fd9..5dbe8fcc9 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ContentCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ContentCommandBase.cs @@ -7,6 +7,7 @@ using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs index ce4a44937..aa07697cd 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ControlPanelItemCommand.cs @@ -1,14 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using Microsoft.Win32; -using System; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Collections.Generic; + +using Microsoft.Win32; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs index 1b86ce1d5..19cd92cec 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs index 6036e3872..627f03877 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs index b0366872c..30e282352 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Eventlog.cs @@ -5,8 +5,8 @@ using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; // Win32Exception -using System.Diagnostics; // Eventlog class using System.Diagnostics.CodeAnalysis; +using System.Diagnostics; // Eventlog class using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs index 5de6a89b8..14f64cea4 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs index 91ca72278..f033b1310 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetClipboardCommand.cs @@ -2,18 +2,18 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; using System.Collections.Generic; -using System.Windows.Forms; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.Drawing; using System.Globalization; using System.IO; using System.Linq; -using System.Drawing; +using System.Management.Automation; using System.Media; using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; -using System.Collections.Specialized; +using System.Windows.Forms; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs index 3612b8181..16a06ab10 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetContentCommand.cs @@ -8,6 +8,7 @@ using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs index 25214420c..7079f3d55 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs @@ -4,6 +4,7 @@ using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs index ba3e2d3dd..ed99d6386 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetTransactionCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs index 56bd9fb2b..b07826250 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs @@ -2,11 +2,11 @@ // Licensed under the MIT License. using System; -using System.Globalization; -using System.Management.Automation; -using System.Management; -using System.Text; using System.Collections; +using System.Globalization; +using System.Management; +using System.Management.Automation; +using System.Text; using System.Threading; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs index 4a57acda7..d0f892d3c 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Hotfix.cs @@ -2,27 +2,28 @@ // Licensed under the MIT License. using System; -using System.Text; -using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Diagnostics; // Process class using System.ComponentModel; // Win32Exception +using System.Diagnostics.CodeAnalysis; +using System.Diagnostics; // Process class using System.Globalization; -using System.Runtime.Serialization; -using System.Security.Permissions; -using System.Threading; +using System.IO; using System.Management; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; using System.Net; -using System.IO; +using System.Runtime.Serialization; using System.Security; -using System.Security.Principal; using System.Security.AccessControl; +using System.Security.Permissions; +using System.Security.Principal; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs index 9a21ccead..e6204c619 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/InvokeWMIMethodCommand.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management; -using System.Text; -using System.Management.Automation.Provider; -using System.ComponentModel; using System.Collections; using System.Collections.ObjectModel; -using System.Security.AccessControl; +using System.ComponentModel; +using System.Management; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Management.Automation.Provider; using System.Runtime.InteropServices; +using System.Security.AccessControl; +using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/MovePropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/MovePropertyCommand.cs index 5ee9faf2b..a7eacb14f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/MovePropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/MovePropertyCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs index 4a25b95e9..b263586a0 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs @@ -7,6 +7,7 @@ using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs index f2ef96502..863cee7c8 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ParsePathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ParsePathCommand.cs index 87d5b3abb..4a4f559bb 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ParsePathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ParsePathCommand.cs @@ -6,6 +6,7 @@ using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Management.Automation; using System.Management.Automation.Internal; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs index 849035ee0..17c7082b1 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughContentCommandBase.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs index 071d4a5de..27e33a015 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PassThroughPropertyCommandBase.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs index 44baff155..acf16bfc5 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PingPathCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs index ab3b16f7e..d869512e3 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Process.cs @@ -2,27 +2,28 @@ // Licensed under the MIT License. using System; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; -using System.Diagnostics; // Process class using System.ComponentModel; // Win32Exception -using System.Runtime.ConstrainedExecution; -using System.Runtime.Serialization; -using System.Threading; -using System.Management.Automation; using System.Diagnostics.CodeAnalysis; -using System.Net; +using System.Diagnostics; // Process class using System.IO; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Net; +using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; +using System.Runtime.Serialization; using System.Security; using System.Security.Permissions; using System.Security.Principal; -using Microsoft.Win32.SafeHandles; -using System.Management.Automation.Internal; -using Microsoft.PowerShell.Commands.Internal; +using System.Text; +using System.Threading; + using Microsoft.Management.Infrastructure; +using Microsoft.PowerShell.Commands.Internal; +using Microsoft.Win32.SafeHandles; using FileNakedHandle = System.IntPtr; using DWORD = System.UInt32; diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs index ff06d1065..ceda21a53 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/PropertyCommandBase.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs index 5ca1e21bc..f2f95e0ca 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RegisterWMIEventCommand.cs @@ -4,12 +4,12 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Management.Automation; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Threading; using System.Management; +using System.Management.Automation; using System.Text; +using System.Threading; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs index 93e1ee0d3..428787653 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RemovePropertyCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs index 48d7ef987..f04dd40bb 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RenamePropertyCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/ResolvePathCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/ResolvePathCommand.cs index 7627138e9..9dece663f 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/ResolvePathCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/ResolvePathCommand.cs @@ -2,9 +2,10 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using Dbg = System.Management.Automation; using System.Collections.ObjectModel; +using System.Management.Automation; + +using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs index 92faad03e..63c71991d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/RollbackTransactionCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs index 8998947dc..bce2f7ec1 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetClipboardCommand.cs @@ -2,18 +2,18 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Text; -using System.Windows.Forms; -using System.Collections.Specialized; -using System.Linq; using System.Collections.ObjectModel; +using System.Collections.Specialized; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Text; using System.Text.RegularExpressions; +using System.Windows.Forms; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs index 47874cfc7..218726486 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetContentCommand.cs @@ -3,6 +3,7 @@ using System.Management.Automation; using System.Management.Automation.Internal; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetPropertyCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetPropertyCommand.cs index e03a32d46..1bbb6068a 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetPropertyCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetPropertyCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs index a16dd6840..68c8fdfd5 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/SetWMIInstanceCommand.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management; -using System.Text; -using System.Management.Automation.Provider; -using System.ComponentModel; using System.Collections; using System.Collections.ObjectModel; -using System.Security.AccessControl; -using System.Runtime.InteropServices; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.Management; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Runtime.InteropServices; +using System.Security.AccessControl; +using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs index b0d7bd775..509c87915 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/StartTransactionCommand.cs @@ -3,6 +3,7 @@ using System; using System.Management.Automation; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs index c0000a6ab..4f5651f36 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/TimeZoneCommands.cs @@ -4,11 +4,11 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation; using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Globalization; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Management.Automation; +using System.Runtime.InteropServices; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs index a65924fb6..6b734d0ec 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/UseTransactionCommand.cs @@ -4,6 +4,7 @@ using System; using System.Management.Automation; using System.Management.Automation.Internal; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs index c5f41d29a..b62811ffd 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs @@ -2,21 +2,23 @@ // Licensed under the MIT License. using System; -using System.Globalization; -using System.Management.Automation; -using System.Management; -using System.Management.Automation.Internal; -using System.Text; -using System.Management.Automation.Provider; -using System.ComponentModel; using System.Collections; using System.Collections.ObjectModel; -using System.Security.AccessControl; -using System.Runtime.InteropServices; -using System.Threading; -using System.Management.Automation.Remoting; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Management; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Management.Automation.Provider; +using System.Management.Automation.Remoting; +using System.Runtime.InteropServices; +using System.Security.AccessControl; +using System.Text; +using System.Threading; + using Microsoft.PowerShell.Commands.Internal; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs index 90c994fd9..929dcf6f6 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs @@ -2,29 +2,31 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Net; -using System.Xml; -using System.Text; using System.CodeDom; using System.CodeDom.Compiler; -using System.Web.Services; -using System.Web.Services.Description; -using System.Web.Services.Discovery; -using System.Management; -using System.Management.Automation; -using System.Diagnostics.CodeAnalysis; -using System.Reflection; -using Microsoft.CSharp; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using Dbg = System.Management.Automation; -using System.Runtime.InteropServices; +using System.IO; +using System.Management; +using System.Management.Automation; +using System.Net; +using System.Reflection; using System.Resources; -using Microsoft.Win32; +using System.Runtime.InteropServices; +using System.Text; using System.Text.RegularExpressions; +using System.Web.Services; +using System.Web.Services.Description; +using System.Web.Services.Discovery; +using System.Xml; + +using Microsoft.CSharp; +using Microsoft.Win32; + +using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WriteContentCommandBase.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WriteContentCommandBase.cs index 12148c9ff..dc1221f81 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WriteContentCommandBase.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WriteContentCommandBase.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Join-String.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Join-String.cs index 62282a8da..c1971c3da 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Join-String.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Join-String.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; diff --git a/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs b/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs index 7d03d0b83..788d72c98 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/WindowsTaskbarJumpList/TaskbarJumpList.cs @@ -4,6 +4,7 @@ using System; using System.Diagnostics; using System.Reflection; + using static Microsoft.PowerShell.ComInterfaces; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs index 6be2b04bf..a04a7edd4 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs @@ -2,20 +2,21 @@ // Licensed under the MIT License. using System; -using System.Text; -using System.Text.RegularExpressions; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics; using System.Globalization; using System.IO; -using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Configuration; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; -using System.Diagnostics; -using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Host; -using System.Collections.Generic; +using System.Management.Automation.Internal; +using System.Management.Automation.Runspaces; using System.Security; +using System.Text; +using System.Text.RegularExpressions; + +using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs index 76f047311..0fd679b3c 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterface.cs @@ -7,8 +7,8 @@ using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Runtime.CompilerServices; using System.Security; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs index 8cf227ba4..afe2cbd8d 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceProgress.cs @@ -3,9 +3,10 @@ using System; using System.Management.Automation; -using Dbg = System.Management.Automation.Diagnostics; using System.Threading; +using Dbg = System.Management.Automation.Diagnostics; + namespace Microsoft.PowerShell { internal partial diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs index 88eaab50c..f5c4550b1 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePrompt.cs @@ -2,15 +2,16 @@ // Licensed under the MIT License. using System; -using System.Globalization; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; +using System.Globalization; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Security; +using System.Text; + using Dbg = System.Management.Automation.Diagnostics; using InternalHostUserInterface = System.Management.Automation.Internal.Host.InternalHostUserInterface; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs index fd2fc1db9..660877be1 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfacePromptForChoice.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; -using System.Globalization; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; +using System.Globalization; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Text; using Dbg = System.Management.Automation.Diagnostics; using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs index 18e5ce20f..f78e5b930 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostUserInterfaceSecurity.cs @@ -2,11 +2,12 @@ // Licensed under the MIT License. using System; -using System.Security; +using System.Globalization; using System.Management.Automation; using System.Management.Automation.Internal; +using System.Security; + using Microsoft.Win32; -using System.Globalization; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs index 888ba4bd7..590ad7c1a 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleTextWriter.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; -using System.Text; using System.IO; -using Dbg = System.Management.Automation.Diagnostics; +using System.Text; + using ConsoleHandle = Microsoft.Win32.SafeHandles.SafeFileHandle; -using HRESULT = System.UInt32; +using Dbg = System.Management.Automation.Diagnostics; using DWORD = System.UInt32; +using HRESULT = System.UInt32; using NakedWin32Handle = System.IntPtr; namespace Microsoft.PowerShell diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs index e9790f895..e432b01f6 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; -using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Management.Automation; -using System.Management.Automation.Runspaces; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Linq; +using System.Management.Automation; using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs index 2a88d2d99..4094da993 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ManagedEntrance.cs @@ -2,14 +2,14 @@ // Licensed under the MIT License. using System; -using System.Reflection; +using System.Globalization; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; -using System.Globalization; -using System.Threading; +using System.Reflection; using System.Runtime.InteropServices; +using System.Threading; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs index 988ef5262..be20aa8cf 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Telemetry.cs @@ -2,15 +2,16 @@ // Licensed under the MIT License. using System; +using System.Collections.Generic; +using System.IO; +using System.Management.Automation; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Security.Cryptography; + using Microsoft.ApplicationInsights; using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights.Extensibility; -using System.Management.Automation; -using System.Security.Cryptography; -using System.Collections.Generic; -using System.Reflection; -using System.Runtime.InteropServices; -using System.IO; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs index 6b12d2342..19fb671ae 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/singleshell/installer/EngineInstaller.cs @@ -4,9 +4,9 @@ using System; using System.Collections.Generic; using System.ComponentModel; -using System.Reflection; using System.IO; using System.Management.Automation; +using System.Reflection; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/AssemblyInfo.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/AssemblyInfo.cs index e9ec9e882..e007c82fc 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/AssemblyInfo.cs +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/AssemblyInfo.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.CompilerServices; using System.Reflection; +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("System.Management.Automation,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventDescriptor.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventDescriptor.cs index 1471e9b94..0dd474169 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventDescriptor.cs +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventDescriptor.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.InteropServices; -using System.Diagnostics.CodeAnalysis; namespace System.Diagnostics.Eventing { diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs index af302e3c2..90d1b51be 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Runtime.InteropServices; -using System.ComponentModel; -using System.Threading; using System.Security; -using System.Diagnostics.CodeAnalysis; +using System.Threading; namespace System.Diagnostics.Eventing { diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProviderTraceListener.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProviderTraceListener.cs index b48c9a04b..45927d2c0 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProviderTraceListener.cs +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProviderTraceListener.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Text; -using System.Globalization; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Text; namespace System.Diagnostics.Eventing { diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/Reader/Winmeta.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/Reader/Winmeta.cs index 0e84860f1..ecf9acdc0 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/Reader/Winmeta.cs +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/Reader/Winmeta.cs @@ -155,4 +155,4 @@ namespace System.Diagnostics.Eventing.Reader /// EventLogClassic = 0x80000000000000 } -} \ No newline at end of file +} diff --git a/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs b/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs index 1ca27b09f..6ea137fa0 100644 --- a/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs +++ b/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Exceptions.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Exceptions.cs index c2383daba..48b11236b 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Exceptions.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Exceptions.cs @@ -5,6 +5,7 @@ using System; using System.Management.Automation; using System.Management.Automation.SecurityAccountsManager; using System.Runtime.Serialization; + using Microsoft.PowerShell.LocalAccounts; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs index 4a6675e12..cd5ee5fcc 100644 --- a/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs +++ b/src/Microsoft.PowerShell.LocalAccounts/LocalAccounts/Sam.cs @@ -2,10 +2,10 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.ComponentModel; using System.Runtime.InteropServices; using System.Security.AccessControl; using System.Security.Principal; -using System.ComponentModel; using Microsoft.PowerShell.Commands; using System.Management.Automation.SecurityAccountsManager.Extensions; diff --git a/src/Microsoft.PowerShell.MarkdownRender/CodeInlineRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/CodeInlineRenderer.cs index 0f0874a15..72fb64288 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/CodeInlineRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/CodeInlineRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax.Inlines; diff --git a/src/Microsoft.PowerShell.MarkdownRender/EmphasisInlineRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/EmphasisInlineRenderer.cs index 296fa53f1..e4ce8ab0e 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/EmphasisInlineRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/EmphasisInlineRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax.Inlines; diff --git a/src/Microsoft.PowerShell.MarkdownRender/FencedCodeBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/FencedCodeBlockRenderer.cs index c90b9b1b4..36f04aca0 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/FencedCodeBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/FencedCodeBlockRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Helpers; using Markdig.Renderers; diff --git a/src/Microsoft.PowerShell.MarkdownRender/HeaderBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/HeaderBlockRenderer.cs index 3c61b8c5e..87dc5c0e5 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/HeaderBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/HeaderBlockRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/LeafInlineRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/LeafInlineRenderer.cs index e59c10899..758575967 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/LeafInlineRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/LeafInlineRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax.Inlines; diff --git a/src/Microsoft.PowerShell.MarkdownRender/LineBreakRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/LineBreakRenderer.cs index 81e787d2a..ed008b860 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/LineBreakRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/LineBreakRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax.Inlines; diff --git a/src/Microsoft.PowerShell.MarkdownRender/LinkInlineRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/LinkInlineRenderer.cs index 8bc8a2e95..677143bbf 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/LinkInlineRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/LinkInlineRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax.Inlines; diff --git a/src/Microsoft.PowerShell.MarkdownRender/ListBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/ListBlockRenderer.cs index d1f96a274..a4076ab04 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/ListBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/ListBlockRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs index 2ac778f96..417ad052b 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/ListItemBlockRenderer.cs @@ -4,6 +4,7 @@ using System; using System.IO; using System.Threading; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs b/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs index 99becde6d..9a39a6b26 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/MarkdownConverter.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/ParagraphBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/ParagraphBlockRenderer.cs index 2e7eec16c..bdeb1d13c 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/ParagraphBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/ParagraphBlockRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/QuoteBlockRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/QuoteBlockRenderer.cs index f22f2ae8a..273f1c05a 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/QuoteBlockRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/QuoteBlockRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs b/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs index d3ffcb733..4b2213ab7 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/VT100EscapeSequences.cs @@ -4,6 +4,7 @@ using System; using System.IO; using System.Management.Automation; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/VT100ObjectRenderer.cs b/src/Microsoft.PowerShell.MarkdownRender/VT100ObjectRenderer.cs index 47373a50e..d42c85e1c 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/VT100ObjectRenderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/VT100ObjectRenderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.MarkdownRender/VT100Renderer.cs b/src/Microsoft.PowerShell.MarkdownRender/VT100Renderer.cs index 7049cc312..65af4a83f 100644 --- a/src/Microsoft.PowerShell.MarkdownRender/VT100Renderer.cs +++ b/src/Microsoft.PowerShell.MarkdownRender/VT100Renderer.cs @@ -3,6 +3,7 @@ using System; using System.IO; + using Markdig; using Markdig.Renderers; using Markdig.Syntax; diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJob.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJob.cs index 4f4f9bf89..9bdc6e42e 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJob.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJob.cs @@ -4,14 +4,14 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; -using System.Runtime.Serialization; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using System.IO; using System.ComponentModel; -using System.Security.Permissions; +using System.IO; +using System.Management.Automation; using System.Management.Automation.Host; +using System.Management.Automation.Runspaces; +using System.Runtime.Serialization; +using System.Security.Permissions; +using System.Text; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs index ff83a396b..eafe58f3b 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. using System; -using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Management.Automation; -using System.Management.Automation.Runspaces; +using System.Collections.ObjectModel; using System.Globalization; using System.IO; +using System.Management.Automation; +using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; -using System.Text.RegularExpressions; +using System.Runtime.Serialization; using System.Security.Permissions; +using System.Text.RegularExpressions; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobOptions.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobOptions.cs index c78a4f467..b85826002 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobOptions.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobOptions.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Runtime.Serialization; using System.Management.Automation; +using System.Runtime.Serialization; using System.Security.Permissions; +using System.Text; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobSourceAdapter.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobSourceAdapter.cs index bca0d14a6..3c5e83370 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobSourceAdapter.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobSourceAdapter.cs @@ -4,13 +4,13 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Globalization; +using System.IO; using System.Linq; -using System.Text; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.IO; -using System.Globalization; using System.Runtime.Serialization; +using System.Text; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobStore.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobStore.cs index 724954f50..e2982d85b 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobStore.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobStore.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; -using System.IO; using System.Globalization; +using System.IO; using System.Management.Automation; using System.Security.AccessControl; using System.Security.Principal; +using System.Text; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobTrigger.cs index 755617afb..4fef0e1c4 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobTrigger.cs @@ -4,13 +4,14 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; -using System.Runtime.Serialization; -using System.Management.Automation; using System.Globalization; -using System.Threading; -using Microsoft.Management.Infrastructure; +using System.Management.Automation; +using System.Runtime.Serialization; using System.Security.Permissions; +using System.Text; +using System.Threading; + +using Microsoft.Management.Infrastructure; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobWTS.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobWTS.cs index 52b4e4325..1b89e9559 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobWTS.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobWTS.cs @@ -4,13 +4,14 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; -using TaskScheduler; using System.Diagnostics; using System.Globalization; using System.Management.Automation; using System.Runtime.InteropServices; using System.Security.AccessControl; +using System.Text; + +using TaskScheduler; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/AddJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/AddJobTrigger.cs index 7a080a860..603bfabe3 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/AddJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/AddJobTrigger.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Threading; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/DisableJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/DisableJobTrigger.cs index ebc4db877..9bb46d60c 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/DisableJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/DisableJobTrigger.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Threading; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/EnableDisableCmdletBase.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/EnableDisableCmdletBase.cs index 196ebb9df..e377287e7 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/EnableDisableCmdletBase.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/EnableDisableCmdletBase.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Threading; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Threading; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/EnableJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/EnableJobTrigger.cs index 494fd0808..39063f9c1 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/EnableJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/EnableJobTrigger.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Threading; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobDefinition.cs index aedaed623..00ab43476 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobDefinition.cs @@ -3,8 +3,8 @@ using System; using System.Collections.Generic; -using System.Management.Automation; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobTrigger.cs index 4b1c3f4df..dc1e08bc6 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/GetJobTrigger.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Threading; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/NewJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/NewJobTrigger.cs index 2609a905e..9fcdf5008 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/NewJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/NewJobTrigger.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Threading; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/RegisterJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/RegisterJobDefinition.cs index aa8d4851a..895c4e335 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/RegisterJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/RegisterJobDefinition.cs @@ -4,10 +4,11 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Runspaces; + using Microsoft.PowerShell.Commands; -using System.Diagnostics.CodeAnalysis; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/RemoveJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/RemoveJobTrigger.cs index f1c225da9..a281d830d 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/RemoveJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/RemoveJobTrigger.cs @@ -4,13 +4,13 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Threading; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.Management.Automation; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Threading; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobDefinition.cs index 37c38a92c..2a8da6f00 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobDefinition.cs @@ -3,10 +3,10 @@ using System; using System.Collections.Generic; -using System.Management.Automation; -using System.Management.Automation.Runspaces; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; +using System.Management.Automation.Runspaces; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobTrigger.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobTrigger.cs index 8f9fc4469..cac4dda17 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobTrigger.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/SetJobTrigger.cs @@ -4,9 +4,9 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Diagnostics; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.ScheduledJob/commands/UnregisterJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/commands/UnregisterJobDefinition.cs index e978312a3..7b25a7499 100644 --- a/src/Microsoft.PowerShell.ScheduledJob/commands/UnregisterJobDefinition.cs +++ b/src/Microsoft.PowerShell.ScheduledJob/commands/UnregisterJobDefinition.cs @@ -3,8 +3,8 @@ using System; using System.Collections.Generic; -using System.Management.Automation; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; namespace Microsoft.PowerShell.ScheduledJob { diff --git a/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs b/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs index 89d1ab996..39595a5a3 100644 --- a/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs +++ b/src/Microsoft.PowerShell.Security/security/CertificateCommands.cs @@ -2,15 +2,16 @@ // Licensed under the MIT License. using System; -using Dbg = System.Management.Automation.Diagnostics; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Management.Automation; using System.Security; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; -using System.Diagnostics.CodeAnalysis; + +using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs index ed94c7d16..40048b8a9 100644 --- a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs +++ b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs @@ -2,14 +2,14 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Text; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.Management.Automation; using System.Security.Cryptography.Pkcs; using System.Security.Cryptography.X509Certificates; -using System.Diagnostics.CodeAnalysis; -using System.Collections.ObjectModel; -using System.Collections.Generic; +using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs b/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs index ad119a31e..376d25d35 100644 --- a/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs +++ b/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; +using System.Globalization; using System.IO; using System.Management.Automation; +using System.Runtime.InteropServices; using System.Security; using System.Security.Cryptography; -using System.Runtime.InteropServices; -using System.Globalization; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs b/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs index 029eba8bc..96fd64f44 100644 --- a/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs +++ b/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Internal; -using Dbg = System.Management.Automation.Diagnostics; -using System.Collections.Generic; using System.Collections; -using System.IO; -using System.Management.Automation.Provider; -using System.Security; -using System.Security.Cryptography.X509Certificates; -using System.Runtime.InteropServices; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Management.Automation.Provider; +using System.Runtime.InteropServices; +using System.Security; +using System.Security.Cryptography.X509Certificates; + +using Dbg = System.Management.Automation.Diagnostics; using DWORD = System.UInt32; diff --git a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs index 1c73b098a..1460cb8a1 100644 --- a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs +++ b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs @@ -7,10 +7,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Configuration.Install; -using System.Reflection; -using Microsoft.Win32; using System.IO; using System.Management.Automation; +using System.Reflection; + +using Microsoft.Win32; namespace Microsoft.PowerShell { diff --git a/src/Microsoft.WSMan.Management/ConfigProvider.cs b/src/Microsoft.WSMan.Management/ConfigProvider.cs index 46547407f..52dab0c24 100644 --- a/src/Microsoft.WSMan.Management/ConfigProvider.cs +++ b/src/Microsoft.WSMan.Management/ConfigProvider.cs @@ -2,21 +2,21 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; using System.Collections; -using System.Text; -using System.Management.Automation; -using System.Management.Automation.Provider; +using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Xml; -using System.Xml.XPath; -using System.Text.RegularExpressions; -using System.IO; -using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Runtime.InteropServices; using System.Security; using System.ServiceProcess; +using System.Text; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.XPath; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/CredSSP.cs b/src/Microsoft.WSMan.Management/CredSSP.cs index 99318d96a..c4dbc0684 100644 --- a/src/Microsoft.WSMan.Management/CredSSP.cs +++ b/src/Microsoft.WSMan.Management/CredSSP.cs @@ -2,22 +2,23 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using Microsoft.Win32; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Security; using System.Threading; +using System.Xml; + +using Microsoft.Win32; using Dbg = System.Management.Automation; diff --git a/src/Microsoft.WSMan.Management/Interop.cs b/src/Microsoft.WSMan.Management/Interop.cs index 25e2d9e81..d9394f4a9 100644 --- a/src/Microsoft.WSMan.Management/Interop.cs +++ b/src/Microsoft.WSMan.Management/Interop.cs @@ -2,18 +2,18 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Text; +using System.Xml; #pragma warning disable 1591 diff --git a/src/Microsoft.WSMan.Management/InvokeWSManAction.cs b/src/Microsoft.WSMan.Management/InvokeWSManAction.cs index 372238281..2ff653a4c 100644 --- a/src/Microsoft.WSMan.Management/InvokeWSManAction.cs +++ b/src/Microsoft.WSMan.Management/InvokeWSManAction.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/NewWSManSession.cs b/src/Microsoft.WSMan.Management/NewWSManSession.cs index a2d3bfe6c..edf5a3672 100644 --- a/src/Microsoft.WSMan.Management/NewWSManSession.cs +++ b/src/Microsoft.WSMan.Management/NewWSManSession.cs @@ -2,18 +2,18 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; using System.Net; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/PingWSMan.cs b/src/Microsoft.WSMan.Management/PingWSMan.cs index 6781e940c..0195305f7 100644 --- a/src/Microsoft.WSMan.Management/PingWSMan.cs +++ b/src/Microsoft.WSMan.Management/PingWSMan.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/Set-QuickConfig.cs b/src/Microsoft.WSMan.Management/Set-QuickConfig.cs index b9950f48b..b06805b0a 100644 --- a/src/Microsoft.WSMan.Management/Set-QuickConfig.cs +++ b/src/Microsoft.WSMan.Management/Set-QuickConfig.cs @@ -2,17 +2,17 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/WSManConnections.cs b/src/Microsoft.WSMan.Management/WSManConnections.cs index 98c719683..76f932693 100644 --- a/src/Microsoft.WSMan.Management/WSManConnections.cs +++ b/src/Microsoft.WSMan.Management/WSManConnections.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; -using System.Management.Automation.Runspaces; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Management.Automation.Runspaces; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; + using Dbg = System.Management.Automation; namespace Microsoft.WSMan.Management diff --git a/src/Microsoft.WSMan.Management/WSManInstance.cs b/src/Microsoft.WSMan.Management/WSManInstance.cs index 329db732d..60251db32 100644 --- a/src/Microsoft.WSMan.Management/WSManInstance.cs +++ b/src/Microsoft.WSMan.Management/WSManInstance.cs @@ -2,20 +2,21 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Reflection; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Runtime.CompilerServices; -using System.Management.Automation; -using System.Management.Automation.Provider; -using System.Xml; using System.Collections; using System.Collections.Generic; -using System.Management.Automation.Runspaces; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; -using Dbg = System.Management.Automation; using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Provider; +using System.Management.Automation.Runspaces; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Xml; + +using Dbg = System.Management.Automation; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/WsManHelper.cs b/src/Microsoft.WSMan.Management/WsManHelper.cs index c5dc9c15e..d2bc116eb 100644 --- a/src/Microsoft.WSMan.Management/WsManHelper.cs +++ b/src/Microsoft.WSMan.Management/WsManHelper.cs @@ -2,21 +2,22 @@ // Licensed under the MIT License. using System; -using System.Collections.Generic; -using System.Text; -using System.IO; -using System.Text.RegularExpressions; using System.Collections; -using System.Xml; -using System.Runtime.InteropServices; -using System.Reflection; -using System.Resources; -using System.Globalization; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using Microsoft.Win32; +using System.Globalization; +using System.IO; using System.Management.Automation; using System.Management.Automation.Provider; +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; +using System.Text; +using System.Text.RegularExpressions; using System.Threading; +using System.Xml; + +using Microsoft.Win32; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Management/WsManSnapin.cs b/src/Microsoft.WSMan.Management/WsManSnapin.cs index 8f7ed6017..903d02c77 100644 --- a/src/Microsoft.WSMan.Management/WsManSnapin.cs +++ b/src/Microsoft.WSMan.Management/WsManSnapin.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; +using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics; -using System.Text; using System.Management; using System.Management.Automation; -using System.ComponentModel; -using System.Collections.Generic; using System.Runtime.InteropServices; +using System.Text; namespace Microsoft.WSMan.Management { diff --git a/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs b/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs index 4a2c75799..42c684a9c 100644 --- a/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs +++ b/src/Microsoft.WSMan.Runtime/WSManSessionOption.cs @@ -2,12 +2,12 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Xml; -using System.Net; -using System.Resources; -using System.Reflection; using System.ComponentModel; +using System.IO; +using System.Net; +using System.Reflection; +using System.Resources; +using System.Xml; using System.Collections; using System.Collections.Generic; diff --git a/src/System.Management.Automation/AssemblyInfo.cs b/src/System.Management.Automation/AssemblyInfo.cs index e5ec080bb..731fb02e7 100644 --- a/src/System.Management.Automation/AssemblyInfo.cs +++ b/src/System.Management.Automation/AssemblyInfo.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.CompilerServices; using System.Reflection; using System.Resources; +using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("powershell-tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")] diff --git a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs index e79713b1c..d6b4ed8f5 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs @@ -2,11 +2,12 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Runtime.InteropServices; using System.ComponentModel; +using System.IO; +using System.Runtime.InteropServices; + using Microsoft.Win32; using Microsoft.Win32.SafeHandles; -using System.IO; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/CoreCLR/CorePsStub.cs b/src/System.Management.Automation/CoreCLR/CorePsStub.cs index 47cffe47b..b1c3b9ae3 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsStub.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsStub.cs @@ -2,8 +2,9 @@ // Licensed under the MIT License. using System; -using System.Globalization; using System.Collections.Generic; +using System.Globalization; + using Microsoft.Win32; #pragma warning disable 1591, 1572, 1571, 1573, 1587, 1570, 0067 diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index f179f2133..6214522b7 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -1,10 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.Management.Infrastructure; -using Microsoft.Management.Infrastructure.Generic; -using Microsoft.Management.Infrastructure.Serialization; -using Microsoft.PowerShell.Commands; using System; using System.Collections; using System.Collections.Generic; @@ -16,10 +12,15 @@ using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Language; -using System.Runtime.InteropServices; using System.Reflection; -using System.Text; +using System.Runtime.InteropServices; using System.Security; +using System.Text; + +using Microsoft.Management.Infrastructure; +using Microsoft.Management.Infrastructure.Generic; +using Microsoft.Management.Infrastructure.Serialization; +using Microsoft.PowerShell.Commands; namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal { diff --git a/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs b/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs index 3ec199835..b2e5a64ca 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; using System.Collections.Generic; +using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs b/src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs index 396fb327b..cd9b6afef 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/BaseFormattingCommand.cs @@ -2,9 +2,9 @@ // Licensed under the MIT License. using System; -using System.IO; using System.Collections; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/FormatAndOutput/common/BaseOutputtingCommand.cs b/src/System.Management.Automation/FormatAndOutput/common/BaseOutputtingCommand.cs index 13b119418..1b1dae636 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/BaseOutputtingCommand.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/BaseOutputtingCommand.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System; -using System.Collections.Specialized; using System.Collections.Generic; +using System.Collections.Specialized; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/FormatAndOutput/common/ComplexWriter.cs b/src/System.Management.Automation/FormatAndOutput/common/ComplexWriter.cs index 3ef86fbd7..d536c2d21 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/ComplexWriter.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/ComplexWriter.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; -using System.Text; using System.Globalization; using System.Management.Automation.Internal; +using System.Text; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/FormatTable.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/FormatTable.cs index 9ea6548d8..af8ef63e9 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/FormatTable.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/FormatTable.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System.Collections.Concurrent; -using System.Globalization; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; -using System.Runtime.Serialization; -using System.IO; using System.Diagnostics.CodeAnalysis; -using Microsoft.PowerShell.Commands.Internal.Format; +using System.Globalization; +using System.IO; +using System.Linq; using System.Management.Automation.Host; using System.Management.Automation.Internal; +using System.Runtime.Serialization; using System.Security.Permissions; +using Microsoft.PowerShell.Commands.Internal.Format; + namespace System.Management.Automation.Runspaces { /// diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs index f874b10a7..0e77a143e 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs @@ -3,12 +3,12 @@ using System; using System.Collections.Generic; -using System.Xml; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; using System.Globalization; +using System.Management.Automation; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Text; +using System.Xml; /* SUMMARY: this file contains a general purpose, reusable framework for diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/commands.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/commands.cs index 16caefe1f..721db4264 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/commands.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/commands.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; + using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/displayResourceManagerCache.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/displayResourceManagerCache.cs index ed21655b3..73cb10b98 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/displayResourceManagerCache.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/displayResourceManagerCache.cs @@ -3,9 +3,9 @@ using System; using System.Collections; +using System.Management.Automation; using System.Reflection; using System.Resources; -using System.Management.Automation; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs index 907b23121..37cf6b9de 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs @@ -7,8 +7,8 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Management.Automation; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Threading; diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs index 6eb86bc7e..6edc79f25 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs @@ -5,9 +5,9 @@ using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Globalization; using System.Management.Automation; +using System.Text; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs index d7a5f3861..5c0d209a5 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs @@ -4,8 +4,8 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using System.Xml; using System.Globalization; +using System.Xml; using System.Management.Automation; using System.Management.Automation.Host; diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs index 4dfa9c2fc..38efdf792 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs @@ -3,8 +3,8 @@ using System; using System.Collections.Generic; -using System.Xml; using System.Management.Automation.Internal; +using System.Xml; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs index 57f61c46e..031672a9b 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_List.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Xml; using System.Management.Automation.Internal; +using System.Xml; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs index 67941b877..68ac9fb5e 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs @@ -3,8 +3,8 @@ using System; using System.Collections.Generic; -using System.Xml; using System.Management.Automation.Internal; +using System.Xml; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs index ee854a68e..ab1453f7d 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs @@ -2,10 +2,10 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Management.Automation; -using System.Xml; using System.Globalization; +using System.Management.Automation; using System.Management.Automation.Internal; +using System.Xml; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs index 7b040c0d0..2a53a7d0d 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Wide.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Xml; using System.Management.Automation.Internal; +using System.Xml; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/FormatGroupManager.cs b/src/System.Management.Automation/FormatAndOutput/common/FormatGroupManager.cs index 90f024573..3710e8213 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/FormatGroupManager.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/FormatGroupManager.cs @@ -3,9 +3,9 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Globalization; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/FormatViewManager.cs b/src/System.Management.Automation/FormatAndOutput/common/FormatViewManager.cs index 9f2de82a3..c673308d7 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/FormatViewManager.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/FormatViewManager.cs @@ -7,6 +7,7 @@ using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Internal; using System.Text; + using Microsoft.PowerShell.Commands; namespace Microsoft.PowerShell.Commands.Internal.Format diff --git a/src/System.Management.Automation/FormatAndOutput/common/FormatXMLWriter.cs b/src/System.Management.Automation/FormatAndOutput/common/FormatXMLWriter.cs index 20b803ede..11f214c9c 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/FormatXMLWriter.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/FormatXMLWriter.cs @@ -2,10 +2,10 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.IO; using System.Collections.Generic; using System.Globalization; +using System.IO; +using System.Management.Automation; using System.Xml; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs b/src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs index a153845cc..ce2c2ef7a 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/FormattingObjectsDeserializer.cs @@ -2,11 +2,11 @@ // Licensed under the MIT License. using System; -using System.Reflection; using System.Collections; using System.Collections.Generic; using System.Management.Automation; using System.Management.Automation.Internal; +using System.Reflection; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/ILineOutput.cs b/src/System.Management.Automation/FormatAndOutput/common/ILineOutput.cs index b8db88610..ea67c1bf1 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/ILineOutput.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/ILineOutput.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Globalization; using System.IO; using System.Management.Automation; using System.Text; -using System.Globalization; // interfaces for host interaction diff --git a/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs b/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs index e1b8a6677..a5bf1c9bf 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System; -using System.Collections.Specialized; using System.Collections.Generic; +using System.Collections.Specialized; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/FormatAndOutput/common/OutputQueue.cs b/src/System.Management.Automation/FormatAndOutput/common/OutputQueue.cs index f44804c48..b4714d0e4 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/OutputQueue.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/OutputQueue.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System; -using System.Diagnostics; using System.Collections.Generic; +using System.Diagnostics; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs b/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs index 53032ac01..f01cc9b84 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/TableWriter.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.Management.Automation.Internal; using System.Text; + using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands.Internal.Format diff --git a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshObjectUtil.cs b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshObjectUtil.cs index 1877677e5..a2de347af 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshObjectUtil.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshObjectUtil.cs @@ -2,14 +2,14 @@ // Licensed under the MIT License. using System; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Globalization; using System.Management.Automation; using System.Management.Automation.Runspaces; -using System.Globalization; using System.Reflection; +using System.Text; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameter.cs b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameter.cs index 351d70ec2..c037fa29d 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameter.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameter.cs @@ -2,12 +2,12 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Internal; using System.Collections; using System.Collections.Generic; -using System.Text; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Text; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameterAssociation.cs b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameterAssociation.cs index d13af1ebf..7a04c4537 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameterAssociation.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/Utilities/MshParameterAssociation.cs @@ -2,9 +2,9 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Management.Automation; namespace Microsoft.PowerShell.Commands.Internal.Format { diff --git a/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs b/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs index 54ae35c77..5125283df 100644 --- a/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs +++ b/src/System.Management.Automation/FormatAndOutput/common/Utilities/Mshexpression.cs @@ -2,12 +2,12 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Language; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Management.Automation; +using System.Management.Automation.Internal; +using System.Management.Automation.Language; using System.Runtime.CompilerServices; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/FormatAndOutput/format-default/format-default.cs b/src/System.Management.Automation/FormatAndOutput/format-default/format-default.cs index 7b0ac40e3..2cd756ad7 100644 --- a/src/System.Management.Automation/FormatAndOutput/format-default/format-default.cs +++ b/src/System.Management.Automation/FormatAndOutput/format-default/format-default.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation; + using Microsoft.PowerShell.Commands.Internal.Format; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/cimSupport/cmdletization/EnumWriter.cs b/src/System.Management.Automation/cimSupport/cmdletization/EnumWriter.cs index 0959f5e39..87c7fc991 100644 --- a/src/System.Management.Automation/cimSupport/cmdletization/EnumWriter.cs +++ b/src/System.Management.Automation/cimSupport/cmdletization/EnumWriter.cs @@ -3,10 +3,11 @@ using System; using System.Globalization; +using System.Management.Automation; using System.Reflection; using System.Reflection.Emit; + using Microsoft.PowerShell.Cmdletization.Xml; -using System.Management.Automation; namespace Microsoft.PowerShell.Cmdletization { diff --git a/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs b/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs index 0fe056926..e7330a860 100644 --- a/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs +++ b/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs @@ -7,7 +7,9 @@ using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation; using System.Reflection; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Cim diff --git a/src/System.Management.Automation/engine/ApplicationInfo.cs b/src/System.Management.Automation/engine/ApplicationInfo.cs index f551518bc..106696a28 100644 --- a/src/System.Management.Automation/engine/ApplicationInfo.cs +++ b/src/System.Management.Automation/engine/ApplicationInfo.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Diagnostics; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs b/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs index 22a734d9d..19c383e6c 100644 --- a/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs +++ b/src/System.Management.Automation/engine/ArgumentTypeConverterAttribute.cs @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections; using System.Globalization; using System.Linq; -using Dbg = System.Management.Automation.Diagnostics; -using System.Collections; using System.Reflection; +using Dbg = System.Management.Automation.Diagnostics; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs index f82e37e11..266fe0a7b 100644 --- a/src/System.Management.Automation/engine/Attributes.cs +++ b/src/System.Management.Automation/engine/Attributes.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. using System.Collections; -using System.Collections.Generic; using System.Collections.Concurrent; -using System.Text.RegularExpressions; -using System.Globalization; -using System.Management.Automation.Internal; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.Linq; +using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Runtime.CompilerServices; -using System.Linq; +using System.Text.RegularExpressions; using System.Threading.Tasks; namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/engine/COM/ComAdapter.cs b/src/System.Management.Automation/engine/COM/ComAdapter.cs index b4548246f..257638f76 100644 --- a/src/System.Management.Automation/engine/COM/ComAdapter.cs +++ b/src/System.Management.Automation/engine/COM/ComAdapter.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.ComponentModel; +using System.Text; + using Microsoft.PowerShell; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/COM/ComDispatch.cs b/src/System.Management.Automation/engine/COM/ComDispatch.cs index f1a1655a8..0daeea783 100644 --- a/src/System.Management.Automation/engine/COM/ComDispatch.cs +++ b/src/System.Management.Automation/engine/COM/ComDispatch.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Runtime.InteropServices; + using COM = System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation @@ -37,4 +38,4 @@ namespace System.Management.Automation out ComInvoker.EXCEPINFO pExcepInfo, out uint puArgErr); } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/engine/COM/ComInvoker.cs b/src/System.Management.Automation/engine/COM/ComInvoker.cs index d50dd9c47..384708ec0 100644 --- a/src/System.Management.Automation/engine/COM/ComInvoker.cs +++ b/src/System.Management.Automation/engine/COM/ComInvoker.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Reflection; using System.Runtime.InteropServices; + using COM = System.Runtime.InteropServices.ComTypes; // Disable obsolete warnings about VarEnum and COM-marshaling APIs in CoreCLR diff --git a/src/System.Management.Automation/engine/COM/ComMethod.cs b/src/System.Management.Automation/engine/COM/ComMethod.cs index 213924417..9dd28fe39 100644 --- a/src/System.Management.Automation/engine/COM/ComMethod.cs +++ b/src/System.Management.Automation/engine/COM/ComMethod.cs @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.InteropServices; using System.Collections.ObjectModel; -using System.Reflection; using System.Management.Automation.Internal; +using System.Reflection; +using System.Runtime.InteropServices; + using COM = System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/COM/ComProperty.cs b/src/System.Management.Automation/engine/COM/ComProperty.cs index 0f9a3aa0c..9b669da46 100644 --- a/src/System.Management.Automation/engine/COM/ComProperty.cs +++ b/src/System.Management.Automation/engine/COM/ComProperty.cs @@ -1,11 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.InteropServices; using System.Collections.ObjectModel; -using System.Reflection; -using System.Text; using System.Globalization; +using System.Reflection; +using System.Runtime.InteropServices; +using System.Text; + using COM = System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/COM/ComTypeInfo.cs b/src/System.Management.Automation/engine/COM/ComTypeInfo.cs index 6e50ebb75..64d07872c 100644 --- a/src/System.Management.Automation/engine/COM/ComTypeInfo.cs +++ b/src/System.Management.Automation/engine/COM/ComTypeInfo.cs @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics.CodeAnalysis; -using System.Runtime.InteropServices; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Internal; +using System.Runtime.InteropServices; + using COM = System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/COM/ComUtil.cs b/src/System.Management.Automation/engine/COM/ComUtil.cs index 73a184e15..9ec96bc9f 100644 --- a/src/System.Management.Automation/engine/COM/ComUtil.cs +++ b/src/System.Management.Automation/engine/COM/ComUtil.cs @@ -1,11 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.InteropServices; -using System.Management.Automation.ComInterop; -using System.Text; using System.Collections; using System.Collections.ObjectModel; +using System.Management.Automation.ComInterop; +using System.Runtime.InteropServices; +using System.Text; + using COM = System.Runtime.InteropServices.ComTypes; // Stops compiler from warning about unknown warnings. Prefast warning numbers are not recognized by C# compiler diff --git a/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs index da90e1c92..46c8f40d0 100644 --- a/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ChildrenCmdletProviderInterfaces.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs b/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs index c5e468ef8..9d40f77b6 100644 --- a/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/CmdletFamilyProviderInterfaces.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Dbg = System.Management.Automation; using System.Management.Automation.Internal; +using Dbg = System.Management.Automation; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/CmdletInfo.cs b/src/System.Management.Automation/engine/CmdletInfo.cs index e54838822..b392a8dae 100644 --- a/src/System.Management.Automation/engine/CmdletInfo.cs +++ b/src/System.Management.Automation/engine/CmdletInfo.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Reflection; using System.Text; diff --git a/src/System.Management.Automation/engine/CmdletParameterBinderController.cs b/src/System.Management.Automation/engine/CmdletParameterBinderController.cs index 530e967c7..7e4c4f3b6 100644 --- a/src/System.Management.Automation/engine/CmdletParameterBinderController.cs +++ b/src/System.Management.Automation/engine/CmdletParameterBinderController.cs @@ -4,14 +4,14 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.Linq; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Text; -using System.Globalization; -using System.Diagnostics.CodeAnalysis; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/CommandBase.cs b/src/System.Management.Automation/engine/CommandBase.cs index a6dd78d47..08500961c 100644 --- a/src/System.Management.Automation/engine/CommandBase.cs +++ b/src/System.Management.Automation/engine/CommandBase.cs @@ -2,14 +2,15 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; -using System.Management.Automation.Language; using System.Diagnostics; using System.Management.Automation.Host; -using System.Management.Automation.Internal.Host; using System.Management.Automation.Internal; -using Dbg = System.Management.Automation.Diagnostics; +using System.Management.Automation.Internal.Host; +using System.Management.Automation.Language; using System.Management.Automation.Runspaces; +using Dbg = System.Management.Automation.Diagnostics; + namespace System.Management.Automation.Internal { /// diff --git a/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs b/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs index 05bbdfcd4..ed2ef3ee8 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Collections.ObjectModel; using System.Collections; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs index c771d2c48..0bf178647 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs @@ -3,6 +3,7 @@ using System.Collections; using System.Collections.Concurrent; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data; using System.Diagnostics.CodeAnalysis; @@ -11,13 +12,13 @@ using System.IO; using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Collections.Generic; using System.Management.Automation.Runspaces; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Text.RegularExpressions; using System.Threading; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using Microsoft.PowerShell; diff --git a/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs b/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs index 242708221..2b13ccf56 100644 --- a/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs +++ b/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Globalization; using System.Linq; -using System.Collections.ObjectModel; -using System.Collections.Generic; using System.Management.Automation.Host; -using System.Text; -using System.Reflection; using System.Management.Automation.Runspaces; +using System.Reflection; +using System.Text; namespace System.Management.Automation.Language { diff --git a/src/System.Management.Automation/engine/CommandDiscovery.cs b/src/System.Management.Automation/engine/CommandDiscovery.cs index 2d557c469..1f71b2770 100644 --- a/src/System.Management.Automation/engine/CommandDiscovery.cs +++ b/src/System.Management.Automation/engine/CommandDiscovery.cs @@ -7,14 +7,16 @@ using System.Diagnostics.Tracing; using System.Globalization; using System.IO; using System.Linq; +using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Security; -using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Host; + using Microsoft.PowerShell.Commands; using Microsoft.Win32; +using Dbg = System.Management.Automation.Diagnostics; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/CommandMetadata.cs b/src/System.Management.Automation/engine/CommandMetadata.cs index 5e1bc1cd5..278aceed4 100644 --- a/src/System.Management.Automation/engine/CommandMetadata.cs +++ b/src/System.Management.Automation/engine/CommandMetadata.cs @@ -5,11 +5,12 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; +using System.Globalization; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Globalization; -using System.Text; using System.Reflection; +using System.Text; + using Microsoft.PowerShell.Commands; using Dbg = System.Diagnostics.Debug; diff --git a/src/System.Management.Automation/engine/CommandPathSearch.cs b/src/System.Management.Automation/engine/CommandPathSearch.cs index 57b57f676..7b1709bab 100644 --- a/src/System.Management.Automation/engine/CommandPathSearch.cs +++ b/src/System.Management.Automation/engine/CommandPathSearch.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/CommandProcessor.cs b/src/System.Management.Automation/engine/CommandProcessor.cs index 5c01e9467..40fb3eff8 100644 --- a/src/System.Management.Automation/engine/CommandProcessor.cs +++ b/src/System.Management.Automation/engine/CommandProcessor.cs @@ -3,11 +3,13 @@ using System.Collections; using System.Collections.Concurrent; -using System.Linq.Expressions; using System.Collections.ObjectModel; using System.Diagnostics; +using System.Linq.Expressions; using System.Management.Automation.Internal; + using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/CommandProcessorBase.cs b/src/System.Management.Automation/engine/CommandProcessorBase.cs index 6b8b197f7..042a69489 100644 --- a/src/System.Management.Automation/engine/CommandProcessorBase.cs +++ b/src/System.Management.Automation/engine/CommandProcessorBase.cs @@ -2,9 +2,10 @@ // Licensed under the MIT License. using System.Collections; -using System.Management.Automation.Language; using System.Collections.ObjectModel; using System.Management.Automation.Internal; +using System.Management.Automation.Language; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/CommandSearcher.cs b/src/System.Management.Automation/engine/CommandSearcher.cs index 2a4346a5f..a703b2ec2 100644 --- a/src/System.Management.Automation/engine/CommandSearcher.cs +++ b/src/System.Management.Automation/engine/CommandSearcher.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Management.Automation.Internal; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs index 4d44ed21d..e2f94d077 100644 --- a/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ContentCmdletProviderInterfaces.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs b/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs index 27f8c4f13..453cba6a0 100644 --- a/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs +++ b/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Linq; using System.Management.Automation.Provider; using System.Reflection; -using System.Linq; using System.Threading; + using Dbg = System.Management.Automation; -using System.Collections.Generic; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/DriveInterfaces.cs b/src/System.Management.Automation/engine/DriveInterfaces.cs index 302f112cc..9d86fda58 100644 --- a/src/System.Management.Automation/engine/DriveInterfaces.cs +++ b/src/System.Management.Automation/engine/DriveInterfaces.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/DscResourceSearcher.cs b/src/System.Management.Automation/engine/DscResourceSearcher.cs index 86e7144db..bf1bfe4be 100644 --- a/src/System.Management.Automation/engine/DscResourceSearcher.cs +++ b/src/System.Management.Automation/engine/DscResourceSearcher.cs @@ -4,6 +4,7 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/EngineIntrinsics.cs b/src/System.Management.Automation/engine/EngineIntrinsics.cs index 4efe3fd32..a2405ab08 100644 --- a/src/System.Management.Automation/engine/EngineIntrinsics.cs +++ b/src/System.Management.Automation/engine/EngineIntrinsics.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Host; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs b/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs index 891ddab7c..978eda0ce 100644 --- a/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs +++ b/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs @@ -2,11 +2,12 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Text; -using System.Reflection; using System.Diagnostics; -using Dbg = System.Management.Automation; using System.Globalization; +using System.Reflection; +using System.Text; + +using Dbg = System.Management.Automation; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs index 0551172a7..710261bd2 100644 --- a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs +++ b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Text; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ExecutionContext.cs b/src/System.Management.Automation/engine/ExecutionContext.cs index 2f7d0a7a4..ff06791f3 100644 --- a/src/System.Management.Automation/engine/ExecutionContext.cs +++ b/src/System.Management.Automation/engine/ExecutionContext.cs @@ -3,6 +3,7 @@ using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; using System.Management.Automation.Host; @@ -10,11 +11,11 @@ using System.Management.Automation.Internal; using System.Management.Automation.Internal.Host; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Runtime.CompilerServices; -using Microsoft.PowerShell; using System.Reflection; +using System.Runtime.CompilerServices; using System.Security; -using System.Diagnostics.CodeAnalysis; + +using Microsoft.PowerShell; using Microsoft.PowerShell.Commands.Internal.Format; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs index ae3f7fbc4..1a9e02872 100644 --- a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs +++ b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; using System.Management.Automation.Internal; +using System.Runtime.Serialization; using System.Security.Permissions; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ExternalScriptInfo.cs b/src/System.Management.Automation/engine/ExternalScriptInfo.cs index 56834086c..18db1edd7 100644 --- a/src/System.Management.Automation/engine/ExternalScriptInfo.cs +++ b/src/System.Management.Automation/engine/ExternalScriptInfo.cs @@ -1,14 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; -using System.Text; -using System.Collections.ObjectModel; -using System.Management.Automation.Runspaces; -using Microsoft.PowerShell.Commands; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.IO; using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; using System.Management.Automation.Security; +using System.Text; + +using Microsoft.PowerShell.Commands; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/ExtraAdapter.cs b/src/System.Management.Automation/engine/ExtraAdapter.cs index 9597b696c..6d0e4489b 100644 --- a/src/System.Management.Automation/engine/ExtraAdapter.cs +++ b/src/System.Management.Automation/engine/ExtraAdapter.cs @@ -7,6 +7,7 @@ using System.DirectoryServices; using System.Reflection; using System.Runtime.InteropServices; using System.Text; + using Microsoft.PowerShell; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/FunctionInfo.cs b/src/System.Management.Automation/engine/FunctionInfo.cs index f4c08a32b..0c11badf6 100644 --- a/src/System.Management.Automation/engine/FunctionInfo.cs +++ b/src/System.Management.Automation/engine/FunctionInfo.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Text; -using System.Management.Automation.Runspaces; using System.Collections.ObjectModel; +using System.Management.Automation.Runspaces; +using System.Text; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/GetCommandCommand.cs b/src/System.Management.Automation/engine/GetCommandCommand.cs index 58bd1ab30..5269d5c2d 100644 --- a/src/System.Management.Automation/engine/GetCommandCommand.cs +++ b/src/System.Management.Automation/engine/GetCommandCommand.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System; -using System.Globalization; -using System.Linq; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.IO; +using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; using System.Management.Automation.Language; using System.Reflection; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/InformationRecord.cs b/src/System.Management.Automation/engine/InformationRecord.cs index 3eb92db37..360701cc5 100644 --- a/src/System.Management.Automation/engine/InformationRecord.cs +++ b/src/System.Management.Automation/engine/InformationRecord.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; using System.Collections.Generic; +using System.Runtime.Serialization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/InitialSessionState.cs b/src/System.Management.Automation/engine/InitialSessionState.cs index 40cd83057..216dae274 100644 --- a/src/System.Management.Automation/engine/InitialSessionState.cs +++ b/src/System.Management.Automation/engine/InitialSessionState.cs @@ -9,17 +9,19 @@ using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Tracing; using System.IO; using System.Linq; +using System.Management.Automation.Host; using System.Management.Automation.Internal; -using System.Management.Automation.Provider; using System.Management.Automation.Language; +using System.Management.Automation.Provider; using System.Management.Automation.Security; using System.Reflection; using System.Runtime.CompilerServices; -using System.Threading; -using Microsoft.PowerShell.Commands; -using System.Management.Automation.Host; using System.Text; +using System.Threading; using System.Threading.Tasks; + +using Microsoft.PowerShell.Commands; + using Debug = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/InternalCommands.cs b/src/System.Management.Automation/engine/InternalCommands.cs index 1a709ce10..d20ef40f5 100644 --- a/src/System.Management.Automation/engine/InternalCommands.cs +++ b/src/System.Management.Automation/engine/InternalCommands.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System; -using System.Dynamic; -using System.Linq; -using System.Linq.Expressions; -using System.Runtime.CompilerServices; -using System.Text; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Dynamic; using System.Globalization; +using System.Linq; +using System.Linq.Expressions; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; +using System.Text; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/InvocationInfo.cs b/src/System.Management.Automation/engine/InvocationInfo.cs index a610f2829..e636f4720 100644 --- a/src/System.Management.Automation/engine/InvocationInfo.cs +++ b/src/System.Management.Automation/engine/InvocationInfo.cs @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; -using System.Management.Automation.Internal; using System.Collections; -using System.Diagnostics; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics; +using System.IO; +using System.Management.Automation.Internal; using System.Management.Automation.Language; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs index 19f52cdd0..b0f83d392 100644 --- a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/LanguagePrimitives.cs b/src/System.Management.Automation/engine/LanguagePrimitives.cs index 9a732bcca..d445b7e2f 100644 --- a/src/System.Management.Automation/engine/LanguagePrimitives.cs +++ b/src/System.Management.Automation/engine/LanguagePrimitives.cs @@ -6,20 +6,21 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Data; +using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.IO; using System.Linq; using System.Linq.Expressions; +using System.Management.Automation.Internal; using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; using System.Reflection; using System.Reflection.Emit; using System.Runtime.CompilerServices; +using System.Text; using System.Text.RegularExpressions; using System.Xml; -using System.IO; -using System.Text; -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; -using System.Diagnostics.CodeAnalysis; + using Dbg = System.Management.Automation.Diagnostics; using MethodCacheEntry = System.Management.Automation.DotNetAdapter.MethodCacheEntry; #if !UNIX diff --git a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs index d191ce5a9..121d58a36 100644 --- a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs +++ b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs @@ -4,12 +4,14 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Collections.Specialized; -using System.Globalization; using System.ComponentModel; +using System.Globalization; using System.Management.Automation.Internal; +using System.Text; + using Microsoft.PowerShell; + using Dbg = System.Management.Automation.Diagnostics; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/MinishellParameterBinderController.cs b/src/System.Management.Automation/engine/MinishellParameterBinderController.cs index 36b4cd008..705319bf3 100644 --- a/src/System.Management.Automation/engine/MinishellParameterBinderController.cs +++ b/src/System.Management.Automation/engine/MinishellParameterBinderController.cs @@ -3,10 +3,11 @@ using System.Collections; using System.Collections.ObjectModel; +using System.Globalization; using System.IO; using System.Management.Automation.Language; using System.Xml; -using System.Globalization; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs index 44a49b99e..dec838a37 100644 --- a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs +++ b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs @@ -13,6 +13,7 @@ using System.Management.Automation.Runspaces; using System.Text; using System.Threading; using System.Threading.Tasks; + using Microsoft.PowerShell.Commands; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/ExportModuleMemberCommand.cs b/src/System.Management.Automation/engine/Modules/ExportModuleMemberCommand.cs index 4b6eae2a0..64961b67e 100644 --- a/src/System.Management.Automation/engine/Modules/ExportModuleMemberCommand.cs +++ b/src/System.Management.Automation/engine/Modules/ExportModuleMemberCommand.cs @@ -3,9 +3,9 @@ using System; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; // // Now define the set of commands for manipulating modules. diff --git a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs index b28f24bde..6b8400247 100644 --- a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs @@ -4,16 +4,18 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; +using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Threading; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; // diff --git a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs index fb272cdc4..7bafebc37 100644 --- a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs @@ -4,18 +4,20 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; -using System.Management.Automation.Runspaces; -using System.Reflection; using System.IO; +using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Runspaces; +using System.Reflection; using System.Security; using System.Threading; + using Microsoft.Management.Infrastructure; using Microsoft.PowerShell.Cmdletization; + using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Language; diff --git a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs index 2d09bbeed..45d2abc31 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs @@ -12,13 +12,14 @@ using System.Linq; using System.Management.Automation; using System.Management.Automation.Configuration; using System.Management.Automation.Internal; +using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Management.Automation.Security; using System.Reflection; using System.Text; using System.Xml; + using Microsoft.PowerShell.Cmdletization; -using System.Management.Automation.Language; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs index 8be74965c..0d8be1da1 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs @@ -4,13 +4,15 @@ using System.Collections; using System.Collections.Generic; using System.IO; +using System.Linq; using System.Management.Automation.Configuration; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using Microsoft.PowerShell.Commands; -using System.Linq; using System.Text; using System.Threading; + +using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs b/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs index 9fe48e899..488d893b3 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; -using System.Management.Automation.Language; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Management.Automation; using System.Management.Automation.Internal; +using System.Management.Automation.Language; +using System.Text; + using Dbg = System.Management.Automation.Diagnostics; // diff --git a/src/System.Management.Automation/engine/Modules/ModuleUtils.cs b/src/System.Management.Automation/engine/Modules/ModuleUtils.cs index b54549f38..41fb0c5c0 100644 --- a/src/System.Management.Automation/engine/Modules/ModuleUtils.cs +++ b/src/System.Management.Automation/engine/Modules/ModuleUtils.cs @@ -6,6 +6,7 @@ using System.Globalization; using System.IO; using System.Management.Automation.Runspaces; using System.Text; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/engine/Modules/NewModuleCommand.cs b/src/System.Management.Automation/engine/Modules/NewModuleCommand.cs index eb4dec68f..8d2e5d3f3 100644 --- a/src/System.Management.Automation/engine/Modules/NewModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/NewModuleCommand.cs @@ -3,8 +3,8 @@ using System; using System.Collections.Generic; -using System.Management.Automation; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation; // // Now define the set of commands for manipulating modules. diff --git a/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs b/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs index 24bfe88b8..d37f592f1 100644 --- a/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs +++ b/src/System.Management.Automation/engine/Modules/NewModuleManifestCommand.cs @@ -2,17 +2,18 @@ // Licensed under the MIT License. using System; -using System.Linq; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Reflection; using System.IO; +using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Text; + using Dbg = System.Management.Automation.Diagnostics; // diff --git a/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs b/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs index 584ee89c1..04286662d 100644 --- a/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs +++ b/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs @@ -10,7 +10,9 @@ using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Reflection; + using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/RemoteDiscoveryHelper.cs b/src/System.Management.Automation/engine/Modules/RemoteDiscoveryHelper.cs index 0e404e273..42584078d 100644 --- a/src/System.Management.Automation/engine/Modules/RemoteDiscoveryHelper.cs +++ b/src/System.Management.Automation/engine/Modules/RemoteDiscoveryHelper.cs @@ -15,10 +15,12 @@ using System.Runtime.CompilerServices; using System.Text.RegularExpressions; using System.Threading; using System.Xml; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Options; using Microsoft.PowerShell; using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs b/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs index 28596742b..d19eac343 100644 --- a/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs +++ b/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs @@ -9,6 +9,7 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Reflection; + using Dbg = System.Management.Automation.Diagnostics; // diff --git a/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs b/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs index 4f9122e34..e1b579e65 100644 --- a/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs +++ b/src/System.Management.Automation/engine/Modules/ScriptAnalysis.cs @@ -2,11 +2,11 @@ // Licensed under the MIT License. using System.Collections; -using System.Globalization; using System.Collections.Generic; +using System.Globalization; using System.IO; -using System.Text; using System.Management.Automation.Language; +using System.Text; using System.Text.RegularExpressions; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs b/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs index f26bbcd7f..2242f0e28 100644 --- a/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs +++ b/src/System.Management.Automation/engine/Modules/TestModuleManifestCommand.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; +using System.Collections; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Collections; -using System.Collections.Generic; // // Now define the set of commands for manipulating modules. diff --git a/src/System.Management.Automation/engine/MshCmdlet.cs b/src/System.Management.Automation/engine/MshCmdlet.cs index 32a030c96..c3d070f70 100644 --- a/src/System.Management.Automation/engine/MshCmdlet.cs +++ b/src/System.Management.Automation/engine/MshCmdlet.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.IO; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Reflection; + using PipelineResultTypes = System.Management.Automation.Runspaces.PipelineResultTypes; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/MshMemberInfo.cs b/src/System.Management.Automation/engine/MshMemberInfo.cs index d7d78d802..eb9530634 100644 --- a/src/System.Management.Automation/engine/MshMemberInfo.cs +++ b/src/System.Management.Automation/engine/MshMemberInfo.cs @@ -8,10 +8,10 @@ using System.Collections.Specialized; using System.ComponentModel; using System.Globalization; using System.Linq; -using System.Reflection; -using System.Management.Automation.Language; using System.Management.Automation.Internal; using System.Management.Automation.Interpreter; +using System.Management.Automation.Language; +using System.Reflection; using System.Text; using Microsoft.PowerShell; diff --git a/src/System.Management.Automation/engine/MshObject.cs b/src/System.Management.Automation/engine/MshObject.cs index 7b88718e1..6e8590dd0 100644 --- a/src/System.Management.Automation/engine/MshObject.cs +++ b/src/System.Management.Automation/engine/MshObject.cs @@ -6,22 +6,23 @@ using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.ComponentModel; using System.Data; +using System.Diagnostics.CodeAnalysis; using System.Dynamic; +using System.Globalization; using System.Linq; using System.Linq.Expressions; -using System.Management.Automation.Language; -using System.Reflection; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Text; -using System.Xml; using System.Management.Automation; using System.Management.Automation.Internal; +using System.Management.Automation.Language; using System.Management.Automation.Runspaces; +using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.Serialization; -using System.ComponentModel; -using System.Diagnostics.CodeAnalysis; +using System.Text; +using System.Xml; + using Microsoft.Management.Infrastructure; #if !UNIX using System.DirectoryServices; diff --git a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs index 4bdaae94a..68d1fd2f1 100644 --- a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs +++ b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.PowerShell.Commands; using System.Collections; using System.Collections.ObjectModel; using System.IO; @@ -9,6 +8,8 @@ using System.Linq; using System.Management.Automation.Internal; using System.Text; +using Microsoft.PowerShell.Commands; + namespace System.Management.Automation { using Language; diff --git a/src/System.Management.Automation/engine/NullString.cs b/src/System.Management.Automation/engine/NullString.cs index bbef0ccff..31c6f8035 100644 --- a/src/System.Management.Automation/engine/NullString.cs +++ b/src/System.Management.Automation/engine/NullString.cs @@ -42,4 +42,4 @@ namespace System.Management.Automation.Language #endregion private Constructor } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/engine/PSClassSearcher.cs b/src/System.Management.Automation/engine/PSClassSearcher.cs index 17e819abe..fe096d8ff 100644 --- a/src/System.Management.Automation/engine/PSClassSearcher.cs +++ b/src/System.Management.Automation/engine/PSClassSearcher.cs @@ -4,10 +4,11 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation.Language; using System.IO; -using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Internal; +using System.Management.Automation.Language; + +using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/PSConfiguration.cs b/src/System.Management.Automation/engine/PSConfiguration.cs index fea5ed578..94033e4d0 100644 --- a/src/System.Management.Automation/engine/PSConfiguration.cs +++ b/src/System.Management.Automation/engine/PSConfiguration.cs @@ -4,11 +4,12 @@ using System; using System.Collections.Generic; using System.IO; +using System.Management.Automation.Internal; using System.Text; using System.Threading; + using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using System.Management.Automation.Internal; namespace System.Management.Automation.Configuration { diff --git a/src/System.Management.Automation/engine/PSVersionInfo.cs b/src/System.Management.Automation/engine/PSVersionInfo.cs index 0f51e913a..513fb0658 100644 --- a/src/System.Management.Automation/engine/PSVersionInfo.cs +++ b/src/System.Management.Automation/engine/PSVersionInfo.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics; -using System.Reflection; using System.Collections; +using System.Diagnostics; using System.Globalization; using System.Management.Automation.Internal; +using System.Reflection; using System.Text; using System.Text.RegularExpressions; + using Microsoft.Win32; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ParameterBinderBase.cs b/src/System.Management.Automation/engine/ParameterBinderBase.cs index b294f6db6..7f44db993 100644 --- a/src/System.Management.Automation/engine/ParameterBinderBase.cs +++ b/src/System.Management.Automation/engine/ParameterBinderBase.cs @@ -2,15 +2,16 @@ // Licensed under the MIT License. using System.Collections; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Reflection; -using System.Globalization; -using System.Diagnostics.CodeAnalysis; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ParameterSetInfo.cs b/src/System.Management.Automation/engine/ParameterSetInfo.cs index 9588328a2..7f0d69e88 100644 --- a/src/System.Management.Automation/engine/ParameterSetInfo.cs +++ b/src/System.Management.Automation/engine/ParameterSetInfo.cs @@ -6,7 +6,9 @@ using System.Collections.ObjectModel; using System.Globalization; using System.Linq; using System.Text.RegularExpressions; + using Microsoft.PowerShell; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/PathInterfaces.cs b/src/System.Management.Automation/engine/PathInterfaces.cs index 9a6fa0eec..612411fc7 100644 --- a/src/System.Management.Automation/engine/PathInterfaces.cs +++ b/src/System.Management.Automation/engine/PathInterfaces.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ProgressRecord.cs b/src/System.Management.Automation/engine/ProgressRecord.cs index 04e737bf6..4483ed81f 100644 --- a/src/System.Management.Automation/engine/ProgressRecord.cs +++ b/src/System.Management.Automation/engine/ProgressRecord.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Runtime.Serialization; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs index b42f444f7..2e7a4cd4b 100644 --- a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ProviderInterfaces.cs b/src/System.Management.Automation/engine/ProviderInterfaces.cs index 960b08e94..da2706268 100644 --- a/src/System.Management.Automation/engine/ProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/ProviderInterfaces.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs index f199a32e7..5336b3ec5 100644 --- a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs +++ b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs @@ -5,6 +5,7 @@ using System.Collections.Concurrent; using System.Linq.Expressions; using System.Management.Automation.Internal; using System.Reflection; + using Microsoft.PowerShell.Commands; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ScriptCommand.cs b/src/System.Management.Automation/engine/ScriptCommand.cs index e74842906..50811477c 100644 --- a/src/System.Management.Automation/engine/ScriptCommand.cs +++ b/src/System.Management.Automation/engine/ScriptCommand.cs @@ -13,4 +13,4 @@ namespace System.Management.Automation // This class just needs to exist so we have something to instantiate // to hold the pipeline connectors... } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs index 2f07f9814..5e51f7792 100644 --- a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs +++ b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs @@ -5,8 +5,9 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Management.Automation.Internal; -using System.Reflection; using System.Management.Automation.Language; +using System.Reflection; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/ScriptInfo.cs b/src/System.Management.Automation/engine/ScriptInfo.cs index 26d087254..d12230f12 100644 --- a/src/System.Management.Automation/engine/ScriptInfo.cs +++ b/src/System.Management.Automation/engine/ScriptInfo.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Runspaces; using System.Collections.ObjectModel; +using System.Management.Automation.Runspaces; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs index 63e271290..591d306a6 100644 --- a/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs +++ b/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Security.AccessControl; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SecurityManagerBase.cs b/src/System.Management.Automation/engine/SecurityManagerBase.cs index 18f358018..c03797ba2 100644 --- a/src/System.Management.Automation/engine/SecurityManagerBase.cs +++ b/src/System.Management.Automation/engine/SecurityManagerBase.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Dbg = System.Management.Automation; using System.Management.Automation.Host; +using Dbg = System.Management.Automation; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/SessionState.cs b/src/System.Management.Automation/engine/SessionState.cs index ba552f805..85673724b 100644 --- a/src/System.Management.Automation/engine/SessionState.cs +++ b/src/System.Management.Automation/engine/SessionState.cs @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Language; -using System.Security; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; -using Dbg = System.Management.Automation; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Internal; +using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; +using System.Security; + +using Dbg = System.Management.Automation; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs index 37211502f..4495536bd 100644 --- a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs index cb90fc303..0b1e922b8 100644 --- a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.Generic; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateContainer.cs b/src/System.Management.Automation/engine/SessionStateContainer.cs index ac650368c..66c210d82 100644 --- a/src/System.Management.Automation/engine/SessionStateContainer.cs +++ b/src/System.Management.Automation/engine/SessionStateContainer.cs @@ -3,12 +3,13 @@ using System.Collections; using System.Collections.ObjectModel; +using System.IO; +using System.Management.Automation.Internal; using System.Management.Automation.Provider; using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; using System.Reflection; + using Dbg = System.Management.Automation; -using System.IO; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings #pragma warning disable 56500 diff --git a/src/System.Management.Automation/engine/SessionStateContent.cs b/src/System.Management.Automation/engine/SessionStateContent.cs index e2bdfcf64..5c4ae6e1c 100644 --- a/src/System.Management.Automation/engine/SessionStateContent.cs +++ b/src/System.Management.Automation/engine/SessionStateContent.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs b/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs index b6af86745..f5dda4d7f 100644 --- a/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs @@ -4,10 +4,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; +using System.Globalization; using System.IO; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; -using System.Globalization; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings #pragma warning disable 56500 diff --git a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs index 74623fc57..66c965dc4 100644 --- a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs +++ b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs index 15f7f01c8..69fa3ebb3 100644 --- a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs @@ -5,6 +5,7 @@ using System.Collections; using System.Collections.Generic; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateItem.cs b/src/System.Management.Automation/engine/SessionStateItem.cs index ff2f8fd49..64b4d04b9 100644 --- a/src/System.Management.Automation/engine/SessionStateItem.cs +++ b/src/System.Management.Automation/engine/SessionStateItem.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateNavigation.cs b/src/System.Management.Automation/engine/SessionStateNavigation.cs index 5a73ed77a..9ac1c715c 100644 --- a/src/System.Management.Automation/engine/SessionStateNavigation.cs +++ b/src/System.Management.Automation/engine/SessionStateNavigation.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateProperty.cs b/src/System.Management.Automation/engine/SessionStateProperty.cs index 0912412d0..1456d427c 100644 --- a/src/System.Management.Automation/engine/SessionStateProperty.cs +++ b/src/System.Management.Automation/engine/SessionStateProperty.cs @@ -3,6 +3,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs index b3008d8eb..beebcc60c 100644 --- a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs @@ -6,6 +6,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Provider; using System.Management.Automation.Runspaces; using System.Text; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStatePublic.cs b/src/System.Management.Automation/engine/SessionStatePublic.cs index 45d741e8b..7c5b41b7e 100644 --- a/src/System.Management.Automation/engine/SessionStatePublic.cs +++ b/src/System.Management.Automation/engine/SessionStatePublic.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs index 140e6993e..f80bb29e4 100644 --- a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/SessionStateUtils.cs b/src/System.Management.Automation/engine/SessionStateUtils.cs index cb13b947c..e01ed19cf 100644 --- a/src/System.Management.Automation/engine/SessionStateUtils.cs +++ b/src/System.Management.Automation/engine/SessionStateUtils.cs @@ -5,6 +5,7 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; + using Microsoft.PowerShell.Commands; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs index 1b0f8bfe4..fc69216b6 100644 --- a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs +++ b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs @@ -4,9 +4,10 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation.Provider; using System.Management.Automation.Internal; +using System.Management.Automation.Provider; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/ShellVariable.cs b/src/System.Management.Automation/engine/ShellVariable.cs index 974de5174..5a92077e4 100644 --- a/src/System.Management.Automation/engine/ShellVariable.cs +++ b/src/System.Management.Automation/engine/ShellVariable.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Runtime.CompilerServices; -using System.Collections.Generic; -using System.Collections.ObjectModel; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/TransactedString.cs b/src/System.Management.Automation/engine/TransactedString.cs index a50e6d4fc..517a03a36 100644 --- a/src/System.Management.Automation/engine/TransactedString.cs +++ b/src/System.Management.Automation/engine/TransactedString.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System; -using System.Transactions; using System.Text; +using System.Transactions; namespace Microsoft.PowerShell.Commands.Management { diff --git a/src/System.Management.Automation/engine/TypeMetadata.cs b/src/System.Management.Automation/engine/TypeMetadata.cs index 813538020..d7a09bc03 100644 --- a/src/System.Management.Automation/engine/TypeMetadata.cs +++ b/src/System.Management.Automation/engine/TypeMetadata.cs @@ -5,10 +5,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Linq; -using System.Reflection; -using Microsoft.PowerShell; -using Dbg = System.Diagnostics.Debug; using System.Management.Automation.Language; +using System.Reflection; + +using Microsoft.PowerShell; + +using Dbg = System.Diagnostics.Debug; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/TypeTable.cs b/src/System.Management.Automation/engine/TypeTable.cs index c77e80dea..eea285c9b 100644 --- a/src/System.Management.Automation/engine/TypeTable.cs +++ b/src/System.Management.Automation/engine/TypeTable.cs @@ -15,9 +15,10 @@ using System.Management.Automation.Language; using System.Reflection; using System.Runtime.Serialization; using System.Security; -using System.Xml; -using Dbg = System.Diagnostics.Debug; using System.Security.Permissions; +using System.Xml; + +using Dbg = System.Diagnostics.Debug; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/VariableAttributeCollection.cs b/src/System.Management.Automation/engine/VariableAttributeCollection.cs index d4881c2b9..7e9a0a4a0 100644 --- a/src/System.Management.Automation/engine/VariableAttributeCollection.cs +++ b/src/System.Management.Automation/engine/VariableAttributeCollection.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Dbg = System.Management.Automation; using System.Collections.ObjectModel; +using Dbg = System.Management.Automation; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/WinRT/IInspectable.cs b/src/System.Management.Automation/engine/WinRT/IInspectable.cs index 42ef2b36b..d01cf5965 100644 --- a/src/System.Management.Automation/engine/WinRT/IInspectable.cs +++ b/src/System.Management.Automation/engine/WinRT/IInspectable.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.InteropServices; using System.Reflection; +using System.Runtime.InteropServices; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/debugger/debugger.cs b/src/System.Management.Automation/engine/debugger/debugger.cs index 26401c815..c986f83a2 100644 --- a/src/System.Management.Automation/engine/debugger/debugger.cs +++ b/src/System.Management.Automation/engine/debugger/debugger.cs @@ -2,22 +2,23 @@ // Licensed under the MIT License. using System.Collections; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.IO; -using System.Collections.ObjectModel; -using System.Collections.Generic; -using System.Collections.Concurrent; using System.Linq; -using System.Threading; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Management.Automation.Internal.Host; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; -using System.Diagnostics.CodeAnalysis; +using System.Threading; + using Microsoft.PowerShell.Commands.Internal.Format; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs index 4886f7125..c84f39d38 100644 --- a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs +++ b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/hostifaces/Command.cs b/src/System.Management.Automation/engine/hostifaces/Command.cs index b2b4543ed..cfc8c8dbe 100644 --- a/src/System.Management.Automation/engine/hostifaces/Command.cs +++ b/src/System.Management.Automation/engine/hostifaces/Command.cs @@ -3,10 +3,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; -using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Internal; + using Microsoft.Management.Infrastructure; +using Dbg = System.Management.Automation.Diagnostics; + namespace System.Management.Automation.Runspaces { /// diff --git a/src/System.Management.Automation/engine/hostifaces/Connection.cs b/src/System.Management.Automation/engine/hostifaces/Connection.cs index f4f1ee4fd..e4ced59fd 100644 --- a/src/System.Management.Automation/engine/hostifaces/Connection.cs +++ b/src/System.Management.Automation/engine/hostifaces/Connection.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; -using System.Threading; -using System.Management.Automation.Host; -using System.Management.Automation.Internal; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Runtime.Serialization; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs index 673866797..926e55a89 100644 --- a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs +++ b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs @@ -3,9 +3,9 @@ using System.Collections.Generic; using System.Linq; -using System.Threading; using System.Management.Automation.Host; using System.Management.Automation.Internal; +using System.Threading; #if LEGACYTELEMETRY using Microsoft.PowerShell.Telemetry.Internal; #endif diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs index 07bf30388..fbb38b611 100644 --- a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs +++ b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Globalization; using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.Management.Automation.Host; using System.Management.Automation.Tracing; + using Microsoft.PowerShell; using Microsoft.PowerShell.Commands; diff --git a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs index f4f6baa86..ad61687a1 100644 --- a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs @@ -5,6 +5,7 @@ using System; using System.Globalization; using System.Management.Automation; using System.Management.Automation.Host; + using Dbg = System.Diagnostics; namespace Microsoft.PowerShell diff --git a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs index 029753788..20deca881 100644 --- a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs +++ b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation.Diagnostics; //using System.Runtime.Serialization; diff --git a/src/System.Management.Automation/engine/hostifaces/History.cs b/src/System.Management.Automation/engine/hostifaces/History.cs index 3347f9be1..8ba4373d3 100644 --- a/src/System.Management.Automation/engine/hostifaces/History.cs +++ b/src/System.Management.Automation/engine/hostifaces/History.cs @@ -10,6 +10,7 @@ using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs index f97b38c6d..22f25edb5 100644 --- a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs +++ b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs @@ -5,15 +5,16 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.Management.Automation.Host; -using System.Management.Automation.Runspaces; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Text; -using System.Text.RegularExpressions; +using System.Management.Automation.Runspaces; using System.Runtime.InteropServices; using System.Security; -using System.Globalization; +using System.Text; +using System.Text.RegularExpressions; + using Microsoft.PowerShell.Commands; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs index 925ddafa0..f56d05341 100644 --- a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; using System.Globalization; +using System.Management.Automation.Host; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using System.Management.Automation.Host; -using System.Collections.Generic; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs index 64ca6a86b..e4d782da1 100644 --- a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Language; -using System.Management.Automation.Host; -using System.Management.Automation.Runspaces; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Management.Automation.Host; +using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; using System.Security; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs index 14b324e43..680e0e530 100644 --- a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs +++ b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs @@ -1,20 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Threading; -using System.Runtime.Serialization; -using System.Management.Automation.Host; -using System.Management.Automation.Remoting; -using Microsoft.PowerShell.Commands; -using System.Management.Automation.Internal; -using System.Diagnostics.CodeAnalysis; // for fxcop -using Dbg = System.Management.Automation.Diagnostics; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; // for fxcop +using System.IO; using System.Linq; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; +using System.Runtime.Serialization; +using System.Threading; + +using Microsoft.PowerShell.Commands; + +using Dbg = System.Management.Automation.Diagnostics; #if LEGACYTELEMETRY using Microsoft.PowerShell.Telemetry.Internal; #endif diff --git a/src/System.Management.Automation/engine/hostifaces/MshHost.cs b/src/System.Management.Automation/engine/hostifaces/MshHost.cs index 1fb4d0290..fdd6dce11 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHost.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Runspaces; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Runspaces; namespace System.Management.Automation.Host { diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs index e867bb844..c728da1d6 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs @@ -1,19 +1,20 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; -using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Security; using System.Globalization; +using System.IO; using System.Management.Automation.Configuration; using System.Management.Automation.Runspaces; -using Microsoft.PowerShell.Commands; +using System.Security; +using System.Text; using System.Threading; using System.Threading.Tasks; +using Microsoft.PowerShell.Commands; + namespace System.Management.Automation.Host { /// diff --git a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs index 529f5df35..b9615ab07 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs index 13247bd62..73c795085 100644 --- a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs +++ b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System.Collections; -using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Threading; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; // for fxcop using System.Reflection; using System.Runtime.Serialization; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/hostifaces/Parameter.cs b/src/System.Management.Automation/engine/hostifaces/Parameter.cs index 652257825..54fdbb18d 100644 --- a/src/System.Management.Automation/engine/hostifaces/Parameter.cs +++ b/src/System.Management.Automation/engine/hostifaces/Parameter.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Language; + using Microsoft.Management.Infrastructure; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs index 5e59b1a15..4c37fed59 100644 --- a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs +++ b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs @@ -3,10 +3,11 @@ using System.Collections; using System.Collections.ObjectModel; -using System.Threading; -using System.Runtime.Serialization; -using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Internal; +using System.Runtime.Serialization; +using System.Threading; + +using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces { diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs index a2ec05576..c485d5c75 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs @@ -14,7 +14,9 @@ using System.Management.Automation.Runspaces.Internal; using System.Runtime.Serialization; using System.Threading; using System.Threading.Tasks; + using Microsoft.Management.Infrastructure; + using Dbg = System.Management.Automation.Diagnostics; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs index fd35bb5d1..3f82bea8e 100644 --- a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs +++ b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs @@ -2,11 +2,11 @@ // Licensed under the MIT License. using System.ComponentModel; +using System.Diagnostics; using System.Globalization; using System.IO; using System.Management.Automation.Remoting; using System.Text; -using System.Diagnostics; namespace System.Management.Automation.Runspaces { diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs index d96161907..3bd9bb34b 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInit.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + using Dbg = System.Management.Automation.Diagnostics; using DWORD = System.UInt32; diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs index 31e5d533b..2b5781884 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; -using PSHost = System.Management.Automation.Host.PSHost; +using System.Collections.ObjectModel; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces.Internal; -using System.Collections.ObjectModel; using System.Runtime.Serialization; +using System.Threading; + +using PSHost = System.Management.Automation.Host.PSHost; namespace System.Management.Automation.Runspaces { diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs index a609a34a3..bae81e64e 100644 --- a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs @@ -2,13 +2,14 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Management.Automation.Internal; +using System.Management.Automation.Security; using System.Management.Automation.Tracing; using System.Threading; -using PSHost = System.Management.Automation.Host.PSHost; -using System.Management.Automation.Security; + using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Internal; -using System.Collections.ObjectModel; +using PSHost = System.Management.Automation.Host.PSHost; namespace System.Management.Automation.Runspaces.Internal { diff --git a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs index 6cf8dd0bd..9d408fc99 100644 --- a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs +++ b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs @@ -3,6 +3,7 @@ using System.Management.Automation.Host; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Internal.Host diff --git a/src/System.Management.Automation/engine/interpreter/Utilities.cs b/src/System.Management.Automation/engine/interpreter/Utilities.cs index fd3cbfb88..7736efc96 100644 --- a/src/System.Management.Automation/engine/interpreter/Utilities.cs +++ b/src/System.Management.Automation/engine/interpreter/Utilities.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Threading; + using AstUtils = System.Management.Automation.Interpreter.Utils; namespace System.Management.Automation.Interpreter diff --git a/src/System.Management.Automation/engine/lang/codegen.cs b/src/System.Management.Automation/engine/lang/codegen.cs index 741fdb07f..09d66ce64 100644 --- a/src/System.Management.Automation/engine/lang/codegen.cs +++ b/src/System.Management.Automation/engine/lang/codegen.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Text; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Language @@ -106,4 +107,4 @@ namespace System.Management.Automation.Language .Replace("{", "`{"); } } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/engine/lang/parserutils.cs b/src/System.Management.Automation/engine/lang/parserutils.cs index 338efdb5f..fb2c582c2 100644 --- a/src/System.Management.Automation/engine/lang/parserutils.cs +++ b/src/System.Management.Automation/engine/lang/parserutils.cs @@ -4,16 +4,17 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; using System.Globalization; using System.Management.Automation.Internal; using System.Management.Automation.Internal.Host; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; + using Dbg = System.Management.Automation.Diagnostics; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/lang/scriptblock.cs b/src/System.Management.Automation/engine/lang/scriptblock.cs index 5374ae068..cce73553a 100644 --- a/src/System.Management.Automation/engine/lang/scriptblock.cs +++ b/src/System.Management.Automation/engine/lang/scriptblock.cs @@ -5,18 +5,18 @@ using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; using System.IO; using System.Linq; using System.Linq.Expressions; -using System.Runtime.CompilerServices; -using System.Globalization; -using System.Reflection; -using System.Runtime.Serialization; using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Diagnostics.CodeAnalysis; +using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; +using System.Runtime.Serialization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/parser/Compiler.cs b/src/System.Management.Automation/engine/parser/Compiler.cs index 38be18938..a61f36bd2 100644 --- a/src/System.Management.Automation/engine/parser/Compiler.cs +++ b/src/System.Management.Automation/engine/parser/Compiler.cs @@ -17,6 +17,7 @@ using System.Management.Automation.Runspaces; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; + using Microsoft.PowerShell.Commands; namespace System.Management.Automation.Language diff --git a/src/System.Management.Automation/engine/parser/PSType.cs b/src/System.Management.Automation/engine/parser/PSType.cs index 4dcbf7a93..528d2dc4d 100644 --- a/src/System.Management.Automation/engine/parser/PSType.cs +++ b/src/System.Management.Automation/engine/parser/PSType.cs @@ -5,11 +5,12 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Linq; +using System.Management.Automation.Internal; using System.Reflection; using System.Reflection.Emit; -using Microsoft.PowerShell; using System.Threading; -using System.Management.Automation.Internal; + +using Microsoft.PowerShell; namespace System.Management.Automation.Language { diff --git a/src/System.Management.Automation/engine/parser/SemanticChecks.cs b/src/System.Management.Automation/engine/parser/SemanticChecks.cs index 347e303f0..54c211e60 100644 --- a/src/System.Management.Automation/engine/parser/SemanticChecks.cs +++ b/src/System.Management.Automation/engine/parser/SemanticChecks.cs @@ -6,9 +6,10 @@ using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Linq.Expressions; -using System.Runtime.CompilerServices; using System.Reflection; +using System.Runtime.CompilerServices; using System.Text; + using Microsoft.PowerShell; using Microsoft.PowerShell.DesiredStateConfiguration.Internal; diff --git a/src/System.Management.Automation/engine/parser/SymbolResolver.cs b/src/System.Management.Automation/engine/parser/SymbolResolver.cs index 2e95da9ae..f9fcf48d9 100644 --- a/src/System.Management.Automation/engine/parser/SymbolResolver.cs +++ b/src/System.Management.Automation/engine/parser/SymbolResolver.cs @@ -1,15 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Globalization; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Globalization; +using System.IO; using System.Linq; using System.Linq.Expressions; using System.Management.Automation.Runspaces; using System.Runtime.CompilerServices; + using Microsoft.PowerShell.Commands; -using System.IO; namespace System.Management.Automation.Language { diff --git a/src/System.Management.Automation/engine/parser/TypeResolver.cs b/src/System.Management.Automation/engine/parser/TypeResolver.cs index 102295070..7205b82b7 100644 --- a/src/System.Management.Automation/engine/parser/TypeResolver.cs +++ b/src/System.Management.Automation/engine/parser/TypeResolver.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.Management.Infrastructure; -using Microsoft.PowerShell.Commands; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; @@ -24,6 +22,9 @@ using System.Security.Cryptography.X509Certificates; using System.Text.RegularExpressions; using System.Xml; +using Microsoft.Management.Infrastructure; +using Microsoft.PowerShell.Commands; + namespace System.Management.Automation.Language { internal static class TypeResolver diff --git a/src/System.Management.Automation/engine/parser/VariableAnalysis.cs b/src/System.Management.Automation/engine/parser/VariableAnalysis.cs index 4021d61f8..f4afade44 100644 --- a/src/System.Management.Automation/engine/parser/VariableAnalysis.cs +++ b/src/System.Management.Automation/engine/parser/VariableAnalysis.cs @@ -2,9 +2,9 @@ // Licensed under the MIT License. using System.Collections; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections.Concurrent; using System.Linq; using System.Reflection; diff --git a/src/System.Management.Automation/engine/parser/tokenizer.cs b/src/System.Management.Automation/engine/parser/tokenizer.cs index 19f340367..e3cc70dd6 100644 --- a/src/System.Management.Automation/engine/parser/tokenizer.cs +++ b/src/System.Management.Automation/engine/parser/tokenizer.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Microsoft.PowerShell.Commands; -using Microsoft.PowerShell.DesiredStateConfiguration.Internal; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -14,6 +12,9 @@ using System.Numerics; using System.Runtime.CompilerServices; using System.Text; +using Microsoft.PowerShell.Commands; +using Microsoft.PowerShell.DesiredStateConfiguration.Internal; + namespace System.Management.Automation.Language { /// diff --git a/src/System.Management.Automation/engine/pipeline.cs b/src/System.Management.Automation/engine/pipeline.cs index 8cf7eb96a..e8f566b87 100644 --- a/src/System.Management.Automation/engine/pipeline.cs +++ b/src/System.Management.Automation/engine/pipeline.cs @@ -3,12 +3,13 @@ using System.Collections; using System.Collections.Generic; -using System.Reflection; using System.Management.Automation.Runspaces; -using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Tracing; +using System.Reflection; using System.Runtime.ExceptionServices; +using Dbg = System.Management.Automation.Diagnostics; + #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs b/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs index 3f8a69ebb..7101e7ffb 100644 --- a/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs +++ b/src/System.Management.Automation/engine/remoting/client/ClientMethodExecutor.cs @@ -5,6 +5,7 @@ using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces.Internal; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs index 61cd79f7a..bcb8a9412 100644 --- a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs +++ b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs @@ -2,11 +2,12 @@ // Licensed under the MIT License. using System.Collections.Generic; -using Dbg = System.Management.Automation.Diagnostics; +using System.Collections.ObjectModel; using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; -using System.Collections.ObjectModel; + +using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces.Internal { diff --git a/src/System.Management.Automation/engine/remoting/client/Job.cs b/src/System.Management.Automation/engine/remoting/client/Job.cs index 9d7d53909..8331f1208 100644 --- a/src/System.Management.Automation/engine/remoting/client/Job.cs +++ b/src/System.Management.Automation/engine/remoting/client/Job.cs @@ -4,17 +4,19 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; -using System.Management.Automation.Language; -using System.Management.Automation.Remoting.Internal; -using System.Management.Automation.Tracing; -using System.Management.Automation.Remoting; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Management.Automation.Language; +using System.Management.Automation.Remoting; +using System.Management.Automation.Remoting.Internal; +using System.Management.Automation.Runspaces; +using System.Management.Automation.Tracing; using System.Runtime.Serialization; -using System.Threading; using System.Text; +using System.Threading; + using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/Job2.cs b/src/System.Management.Automation/engine/remoting/client/Job2.cs index 4e2bc2f02..d2c3813a4 100644 --- a/src/System.Management.Automation/engine/remoting/client/Job2.cs +++ b/src/System.Management.Automation/engine/remoting/client/Job2.cs @@ -1,16 +1,17 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Linq; using System.Collections.Generic; -using System.Threading; -using System.Management.Automation.Runspaces; +using System.ComponentModel; using System.Diagnostics.CodeAnalysis; +using System.Linq; +using System.Management.Automation.Language; +using System.Management.Automation.Runspaces; +using System.Management.Automation.Tracing; using System.Runtime.Serialization; using System.Text; -using System.ComponentModel; -using System.Management.Automation.Tracing; -using System.Management.Automation.Language; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/JobManager.cs b/src/System.Management.Automation/engine/remoting/client/JobManager.cs index b2949f305..8006ed1db 100644 --- a/src/System.Management.Automation/engine/remoting/client/JobManager.cs +++ b/src/System.Management.Automation/engine/remoting/client/JobManager.cs @@ -5,11 +5,12 @@ using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Management.Automation.Remoting; -using System.Management.Automation.Tracing; using System.Management.Automation.Runspaces; +using System.Management.Automation.Tracing; using System.Reflection; using System.Security; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs b/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs index eff79dda7..b0538b33f 100644 --- a/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs +++ b/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using System.IO; using System.Linq; using System.Management.Automation.Runspaces; -using System.IO; -using System.Collections; using System.Runtime.Serialization; // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs index 15b49cc2c..8c0fa1a2b 100644 --- a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs +++ b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs @@ -12,6 +12,7 @@ using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs index 82530989e..ed2ac1936 100644 --- a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs +++ b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs @@ -2,15 +2,16 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Globalization; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; +using System.Management.Automation.Remoting.Client; using System.Management.Automation.Tracing; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; -using System.Management.Automation.Internal; -using System.Management.Automation.Host; -using System.Collections.ObjectModel; -using System.Management.Automation.Remoting.Client; #if LEGACYTELEMETRY using Microsoft.PowerShell.Telemetry.Internal; #endif diff --git a/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs b/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs index df6d67b5e..d38b67af1 100644 --- a/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs +++ b/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; -using System.Management.Automation.Remoting; using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Remoting; +using System.Runtime.Serialization; using System.Security.Permissions; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs index 0d5185c2c..6c4b054e9 100644 --- a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs +++ b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Tracing; -using System.Collections.ObjectModel; using System.Collections.Generic; -using System.Threading; +using System.Collections.ObjectModel; using System.Management.Automation.Host; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Runspaces.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; +using System.Management.Automation.Runspaces; +using System.Management.Automation.Runspaces.Internal; +using System.Management.Automation.Tracing; +using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs index 6fcf177df..ebf24e1e7 100644 --- a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs +++ b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs @@ -5,6 +5,7 @@ using System.Collections.ObjectModel; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs b/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs index 8fbe4f028..ceeb8f745 100644 --- a/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs +++ b/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs @@ -7,6 +7,7 @@ using System.Globalization; using System.Linq; using System.Management.Automation.Remoting.Internal; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs index 47d7125a4..bbd47cf79 100644 --- a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs +++ b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; +using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs index a100227c8..f146beb3d 100644 --- a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs +++ b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs @@ -1,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; using System.Collections.Generic; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs index eff6e0023..a599df2d4 100644 --- a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs +++ b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs @@ -1,14 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Management.Automation.Internal; using System.Management.Automation.Remoting; -using Dbg = System.Management.Automation.Diagnostics; -using System.Threading; +using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; +using System.Threading; + +using Dbg = System.Management.Automation.Diagnostics; #pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings diff --git a/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs b/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs index 45f30c9dd..4c3d1219a 100644 --- a/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs +++ b/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Internal; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs b/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs index 25d481239..a9f3a7b6e 100644 --- a/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs +++ b/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs @@ -2,9 +2,10 @@ // Licensed under the MIT License. using System.Management.Automation.Internal; +using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; -using System.Management.Automation.Remoting.Client; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs index aa049cedc..18781be14 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs @@ -6,12 +6,13 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; +using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces; -using System.Management.Automation.Host; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs b/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs index 0fad6b719..ab8e3e5f6 100644 --- a/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs +++ b/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs @@ -4,12 +4,12 @@ using System; using System.Collections; using System.Collections.ObjectModel; -using System.Text; -using System.Globalization; -using System.Threading; -using System.Security.AccessControl; -using System.IO; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Security.AccessControl; +using System.Text; +using System.Threading; using System.Management.Automation; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs b/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs index 2f6ffea45..954bf415f 100644 --- a/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs @@ -6,8 +6,8 @@ using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; using System.Management.Automation.Remoting.Internal; +using System.Management.Automation.Runspaces; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs index ab4e16787..1d8fc87fb 100644 --- a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs @@ -10,6 +10,7 @@ using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/GetJob.cs b/src/System.Management.Automation/engine/remoting/commands/GetJob.cs index 30d5587ef..aa53fbb8d 100644 --- a/src/System.Management.Automation/engine/remoting/commands/GetJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/GetJob.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; -using System.Collections.Generic; -using System; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs index a4e83ef7a..e58f612f8 100644 --- a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs @@ -13,6 +13,7 @@ using System.Management.Automation.Remoting.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs index 25c491180..42326fa02 100644 --- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs +++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs @@ -2,16 +2,16 @@ // Licensed under the MIT License. using System; -using System.IO; using System.Collections; +using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; using System.Linq; using System.Management.Automation; +using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Text; -using System.Diagnostics; -using System.Management.Automation.Internal; -using System.Globalization; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs index 0204df48c..edf7c58f0 100644 --- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationOptionCommand.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Text; using System.Collections; -using System.Management.Automation; using System.Globalization; +using System.Management.Automation; using System.Management.Automation.Runspaces; +using System.Text; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs index 482836dc6..b12680865 100644 --- a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs +++ b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs @@ -3,8 +3,8 @@ using System; using System.Collections; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; @@ -12,9 +12,10 @@ using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Internal; using System.Management.Automation.Language; -using System.Management.Automation.Runspaces; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; +using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs b/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs index d24cf678d..e3cff8bc1 100644 --- a/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/PopRunspaceCommand.cs @@ -5,6 +5,7 @@ using System; using System.Management.Automation; using System.Management.Automation.Host; using System.Management.Automation.Remoting; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs b/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs index 3ce5b675c..364d3c222 100644 --- a/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs @@ -2,19 +2,21 @@ // Licensed under the MIT License. using System; +using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Threading; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Host; -using System.Management.Automation.Remoting; using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; -using Dbg = System.Management.Automation.Diagnostics; -using System.Collections; +using System.Threading; + using Microsoft.PowerShell.Commands.Internal.Format; +using Dbg = System.Management.Automation.Diagnostics; + namespace Microsoft.PowerShell.Commands { /// diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs index 52b118af9..f5c439517 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs @@ -3,17 +3,18 @@ using System; using System.Collections; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using System.Management.Automation; +using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Internal; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Internal; // Stops compiler from warning about unknown warnings #pragma warning disable 1634, 1691 diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs index f1a489df7..413119632 100644 --- a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs +++ b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs @@ -11,6 +11,7 @@ using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs b/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs index f784cafe7..6236a5920 100644 --- a/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs @@ -9,6 +9,7 @@ using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Remoting; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs index 52930ab46..0f5cc64eb 100644 --- a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs @@ -2,15 +2,15 @@ // Licensed under the MIT License. using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; using System.Management.Automation.Security; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; -using System.Collections; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs b/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs index 7f804628b..6ca3d55e8 100644 --- a/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs +++ b/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs @@ -2,12 +2,12 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Remoting; +using System.Collections; using System.Collections.ObjectModel; using System.IO; -using System.Collections; +using System.Management.Automation; using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs b/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs index 4ec2461ff..4d51c2dae 100644 --- a/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs +++ b/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs @@ -7,6 +7,7 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Management.Automation; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs index 079f88925..89016bb1a 100644 --- a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs @@ -8,6 +8,7 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs index fe7b534db..d2fea6b85 100644 --- a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs @@ -8,10 +8,11 @@ using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; +using System.Management.Automation.Remoting.Client; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; -using System.Management.Automation.Remoting.Client; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs index 106552b5d..57f38139d 100644 --- a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs +++ b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs @@ -6,6 +6,7 @@ using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; + using Microsoft.Win32; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs b/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs index a33777339..4e2ec57d2 100644 --- a/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs +++ b/src/System.Management.Automation/engine/remoting/common/AsyncObject.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs b/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs index 094264796..ef41f1985 100644 --- a/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs +++ b/src/System.Management.Automation/engine/remoting/common/DispatchTable.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/Indexer.cs b/src/System.Management.Automation/engine/remoting/common/Indexer.cs index 2aa502507..96c31e7b1 100644 --- a/src/System.Management.Automation/engine/remoting/common/Indexer.cs +++ b/src/System.Management.Automation/engine/remoting/common/Indexer.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs index 913322870..1cd9417d6 100644 --- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs +++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Tracing; using System.IO; +using System.Management.Automation.Tracing; using System.Net; using System.Net.Sockets; using System.Text; using System.Threading; + using Dbg = System.Diagnostics.Debug; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs index 464e91519..eefe2f51f 100644 --- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs +++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs @@ -13,7 +13,9 @@ using System.Security.AccessControl; using System.Security.Principal; using System.Threading; using System.Threading.Tasks; + using Microsoft.Win32.SafeHandles; + using Dbg = System.Diagnostics.Debug; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs index 2040c9b82..aaa26eb53 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspaceConnectionInfo.cs @@ -1,24 +1,26 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Net; -using System.Net.Sockets; +using System.Collections.Generic; +using System.ComponentModel; // Win32Exception using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Collections.Generic; using System.IO; using System.IO.Pipes; -using System.ComponentModel; // Win32Exception -using System.Management.Automation.Tracing; -using System.Management.Automation.Remoting; using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; using System.Management.Automation.Remoting.Client; +using System.Management.Automation.Tracing; +using System.Net; +using System.Net.Sockets; using System.Reflection; using System.Runtime.InteropServices; -using System.Threading; using System.Security.AccessControl; +using System.Threading; + using Microsoft.Win32.SafeHandles; + using Dbg = System.Management.Automation.Diagnostics; using WSManAuthenticationMechanism = System.Management.Automation.Remoting.Client.WSManNativeApi.WSManAuthenticationMechanism; diff --git a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs index 67710f9d2..84338f60b 100644 --- a/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs +++ b/src/System.Management.Automation/engine/remoting/common/RunspaceInitInfo.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting @@ -31,4 +32,4 @@ namespace System.Management.Automation.Remoting MaxRunspaces = maxRS; } } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs index 7938923cd..c5a875f56 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs @@ -1,20 +1,22 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Tracing; -using System.Threading; using System.Collections; using System.Collections.Generic; using System.Globalization; -using System.Management.Automation.Internal; using System.Management.Automation.Host; +using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; using System.Management.Automation.Runspaces.Internal; -using System.Management.Automation.Remoting; +using System.Management.Automation.Tracing; +using System.Reflection; +using System.Threading; + using Microsoft.PowerShell; using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; -using System.Reflection; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs index 107ee2b8e..46e26ce79 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Reflection; using System.Management.Automation.Host; +using System.Reflection; + using Dbg = System.Management.Automation.Diagnostics; using InternalHostUserInterface = System.Management.Automation.Internal.Host.InternalHostUserInterface; diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs index c1631c167..ef27c874c 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs @@ -4,11 +4,12 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Reflection; -using System.Management.Automation.Host; using System.Globalization; -using System.Security; +using System.Management.Automation.Host; +using System.Reflection; using System.Runtime.Serialization; +using System.Security; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs index 15a008cba..bde35ad9d 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs @@ -6,6 +6,7 @@ using System.IO; using System.Management.Automation.Host; using System.Management.Automation.Internal.Host; using System.Runtime.Serialization.Formatters.Binary; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs index 49d07c1b8..f4e9a9438 100644 --- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs +++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.IO; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs index c7d198e18..a2b34d5fb 100644 --- a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs +++ b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs @@ -4,10 +4,11 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using System.Management.Automation.Tracing; -using System.Xml; -using System.Text; using System.Management.Automation.Internal; +using System.Management.Automation.Tracing; +using System.Text; +using System.Xml; + using Dbg = System.Management.Automation.Diagnostics; using TypeTable = System.Management.Automation.Runspaces.TypeTable; diff --git a/src/System.Management.Automation/engine/remoting/common/misc.cs b/src/System.Management.Automation/engine/remoting/common/misc.cs index 62ebb71b4..9d515b2c7 100644 --- a/src/System.Management.Automation/engine/remoting/common/misc.cs +++ b/src/System.Management.Automation/engine/remoting/common/misc.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Remoting; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs b/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs index 454ab415d..e08c768f9 100644 --- a/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs +++ b/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs @@ -4,6 +4,7 @@ using System.Management.Automation.Runspaces; using System.Text; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting.Internal diff --git a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs index a4214b25c..928bf6272 100644 --- a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs +++ b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; using System.Management.Automation.Internal; +using System.Runtime.Serialization; using System.Security.Permissions; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs index 44c1423d8..d06e79699 100644 --- a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs +++ b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs index f91b7fb2a..227d9e548 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs @@ -1,21 +1,23 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; -using System.Management.Automation.Tracing; -using Microsoft.PowerShell.Commands; -using Microsoft.Win32; -using System.Reflection; -using System.IO; -using System.Xml; -using System.Globalization; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; +using System.Management.Automation.Tracing; +using System.Reflection; +using System.Xml; + +using Microsoft.PowerShell.Commands; +using Microsoft.Win32; + using Dbg = System.Management.Automation.Diagnostics; -using System.Collections; namespace System.Management.Automation.Remoting { diff --git a/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs b/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs index 0967f639e..52a2a9ed8 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs @@ -1,12 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; -using System.Xml; -using Microsoft.PowerShell.Commands; -using Dbg = System.Management.Automation.Diagnostics; using System.Collections.Generic; +using System.IO; using System.Text; +using System.Xml; + +using Microsoft.PowerShell.Commands; + +using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting { diff --git a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs index e319a0a80..5c5595364 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs @@ -4,6 +4,7 @@ using System.IO; using System.Management.Automation.Internal; using System.Management.Automation.Tracing; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs index 9909920d2..f8f21fc03 100644 --- a/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs +++ b/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Text; -using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; using System.Globalization; +using System.Runtime.InteropServices; +using System.Text; using Dbg = System.Diagnostics.Debug; diff --git a/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs b/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs index c83194af8..149cf1331 100644 --- a/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs +++ b/src/System.Management.Automation/engine/remoting/host/RemoteHostMethodInfo.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Host; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs index 1dd6ecc92..3228d1fad 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Remoting.Server; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs index abceadb40..08553a9b5 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Security.Principal; -using System.Management.Automation.Runspaces; -using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; using System.Management.Automation.Internal; +using System.Management.Automation.Remoting; +using System.Management.Automation.Runspaces; +using System.Security.Principal; using System.Threading; +using Dbg = System.Management.Automation.Diagnostics; + namespace System.Management.Automation { /// diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs index 48d42e2f9..7c375bb18 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Globalization; using System.Management.Automation.Host; using System.Management.Automation.Remoting.Server; using System.Management.Automation.Runspaces; -using System.Globalization; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs index a111051dc..be421ec76 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostRawUserInterface.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Management.Automation.Host; + using Dbg = System.Management.Automation.Diagnostics; // Stops compiler from warning about unknown warnings #pragma warning disable 1634, 1691 diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs index aec4b8388..694876f8c 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHostUserInterface.cs @@ -6,6 +6,7 @@ using System.Collections.ObjectModel; using System.Globalization; using System.Management.Automation.Host; using System.Security; + using Dbg = System.Management.Automation.Diagnostics; using InternalHostUserInterface = System.Management.Automation.Internal.Host.InternalHostUserInterface; diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs index 49ca2c282..a1ae5bb67 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Management.Automation.Remoting; -using System.Management.Automation.Runspaces; using System.Management.Automation.Remoting.Server; +using System.Management.Automation.Runspaces; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs index e0256662f..aa8a6dd13 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Collections; -using System.Collections.Generic; using System.Collections.Concurrent; +using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; diff --git a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs index cd706551b..b87fc8c6c 100644 --- a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs +++ b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs @@ -1,11 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; using System.Collections.Generic; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Remoting; using System.Management.Automation.Host; +using System.Management.Automation.Remoting; +using System.Management.Automation.Runspaces; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs index 780bc622b..4459bd21c 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Internal; using System.IO; +using System.Management.Automation.Internal; using System.Management.Automation.Remoting.Server; +using System.Management.Automation.Runspaces; +using System.Threading; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs index af5bdff85..3aa174df7 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs @@ -1,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; using System.Collections.Generic; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Remoting diff --git a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs index 337d2a5a5..13a11bec9 100644 --- a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs +++ b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs @@ -11,10 +11,10 @@ using System.Management.Automation.Internal; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; -using System.Security.Cryptography.X509Certificates; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Serialization; +using System.Security.Cryptography.X509Certificates; using System.Text; using System.Threading.Tasks; #if LEGACYTELEMETRY diff --git a/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs b/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs index 076a59b57..c5de19513 100644 --- a/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs +++ b/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; +using System.Management.Automation.Language; using System.Management.Automation.Runspaces; using System.Reflection; using System.Reflection.Emit; -using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; -using System.Management.Automation.Language; using System.Threading; // These APIs are not part of the public contract. diff --git a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs index a483d54c8..470c1113b 100644 --- a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs +++ b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs @@ -16,6 +16,7 @@ using System.Management.Automation.Runspaces; using System.Reflection; using System.Runtime.CompilerServices; using System.Text.RegularExpressions; + using Microsoft.PowerShell.Commands; using Microsoft.PowerShell.Commands.Internal.Format; diff --git a/src/System.Management.Automation/engine/serialization.cs b/src/System.Management.Automation/engine/serialization.cs index c2f35a767..283399721 100644 --- a/src/System.Management.Automation/engine/serialization.cs +++ b/src/System.Management.Automation/engine/serialization.cs @@ -11,6 +11,7 @@ using System.IO; using System.Linq; using System.Management.Automation.Internal; using System.Management.Automation.Language; +using System.Management.Automation.Remoting; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; using System.Net.Mail; @@ -19,11 +20,12 @@ using System.Runtime.CompilerServices; using System.Security; using System.Text; using System.Xml; + using Microsoft.Management.Infrastructure; using Microsoft.Management.Infrastructure.Serialization; using Microsoft.PowerShell.Commands; + using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/BaseCommandHelpInfo.cs b/src/System.Management.Automation/help/BaseCommandHelpInfo.cs index 832abdfed..e1147c078 100644 --- a/src/System.Management.Automation/help/BaseCommandHelpInfo.cs +++ b/src/System.Management.Automation/help/BaseCommandHelpInfo.cs @@ -2,9 +2,9 @@ // Licensed under the MIT License. using System.Collections.Generic; +using System.Globalization; using System.Linq; using System.Management.Automation.Runspaces; -using System.Globalization; using System.Text; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/help/CabinetNativeApi.cs b/src/System.Management.Automation/help/CabinetNativeApi.cs index db5a3ec74..0ef22c88d 100644 --- a/src/System.Management.Automation/help/CabinetNativeApi.cs +++ b/src/System.Management.Automation/help/CabinetNativeApi.cs @@ -3,6 +3,7 @@ using System.IO; using System.Runtime.InteropServices; + using Microsoft.Win32.SafeHandles; namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/help/CommandHelpProvider.cs b/src/System.Management.Automation/help/CommandHelpProvider.cs index 24fb557b8..11e976b8e 100644 --- a/src/System.Management.Automation/help/CommandHelpProvider.cs +++ b/src/System.Management.Automation/help/CommandHelpProvider.cs @@ -1,16 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Globalization; -using System.Xml; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; using System.Management.Automation.Internal; using System.Management.Automation.Runspaces; -using System.Diagnostics.CodeAnalysis; +using System.Xml; using Dbg = System.Management.Automation.Diagnostics; using System.Management.Automation.Help; diff --git a/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs b/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs index 335d37691..264627672 100644 --- a/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs +++ b/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs @@ -1,15 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; -using System.Globalization; -using System.Text; +using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Collections; using System.Diagnostics; +using System.Globalization; +using System.Management.Automation.Internal; +using System.Management.Automation.Runspaces; using System.Reflection; +using System.Text; namespace System.Management.Automation.Help { diff --git a/src/System.Management.Automation/help/DscResourceHelpProvider.cs b/src/System.Management.Automation/help/DscResourceHelpProvider.cs index ad0dce04a..c337705d4 100644 --- a/src/System.Management.Automation/help/DscResourceHelpProvider.cs +++ b/src/System.Management.Automation/help/DscResourceHelpProvider.cs @@ -7,6 +7,7 @@ using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Xml; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/help/HelpCommands.cs b/src/System.Management.Automation/help/HelpCommands.cs index dcf76088a..e6109db0c 100644 --- a/src/System.Management.Automation/help/HelpCommands.cs +++ b/src/System.Management.Automation/help/HelpCommands.cs @@ -2,18 +2,18 @@ // Licensed under the MIT License. using System; -using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Management.Automation.Runspaces; -using System.Collections.ObjectModel; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Diagnostics; -using System.Management.Automation; +using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Management.Automation.Internal; -using System.Management.Automation.Help; -using System.Runtime.InteropServices; using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Management.Automation.Help; +using System.Management.Automation.Internal; +using System.Management.Automation.Runspaces; +using System.Runtime.InteropServices; #if !UNIX using Microsoft.Win32; #endif diff --git a/src/System.Management.Automation/help/HelpCommentsParser.cs b/src/System.Management.Automation/help/HelpCommentsParser.cs index d491a99bf..8b6fc9352 100644 --- a/src/System.Management.Automation/help/HelpCommentsParser.cs +++ b/src/System.Management.Automation/help/HelpCommentsParser.cs @@ -1,19 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; +using System.IO; using System.Linq; +using System.Management.Automation.Help; using System.Management.Automation.Language; using System.Management.Automation.Runspaces; -using System.Xml; +using System.Reflection; using System.Text; using System.Text.RegularExpressions; -using System.Management.Automation.Help; -using System.Reflection; +using System.Xml; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/HelpFileHelpProvider.cs b/src/System.Management.Automation/help/HelpFileHelpProvider.cs index b83385205..e1e0a4385 100644 --- a/src/System.Management.Automation/help/HelpFileHelpProvider.cs +++ b/src/System.Management.Automation/help/HelpFileHelpProvider.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.IO; using System.Linq; using System.Management.Automation.Internal; diff --git a/src/System.Management.Automation/help/HelpProvider.cs b/src/System.Management.Automation/help/HelpProvider.cs index a296525ca..6da72b1f5 100644 --- a/src/System.Management.Automation/help/HelpProvider.cs +++ b/src/System.Management.Automation/help/HelpProvider.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.IO; using System.Reflection; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/help/HelpSystem.cs b/src/System.Management.Automation/help/HelpSystem.cs index b36d5254a..a362b4723 100644 --- a/src/System.Management.Automation/help/HelpSystem.cs +++ b/src/System.Management.Automation/help/HelpSystem.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Management.Automation.Language; using System.Globalization; +using System.Management.Automation.Language; + using Microsoft.PowerShell.Commands; using System.Management.Automation.Runspaces; diff --git a/src/System.Management.Automation/help/HelpUtils.cs b/src/System.Management.Automation/help/HelpUtils.cs index c60339a90..7892ec26a 100644 --- a/src/System.Management.Automation/help/HelpUtils.cs +++ b/src/System.Management.Automation/help/HelpUtils.cs @@ -4,6 +4,7 @@ using System.IO; using System.Management.Automation; using System.Management.Automation.Help; + using Microsoft.PowerShell.Commands; namespace System.Management.Automation diff --git a/src/System.Management.Automation/help/MUIFileSearcher.cs b/src/System.Management.Automation/help/MUIFileSearcher.cs index 09e204c6f..fb31de950 100644 --- a/src/System.Management.Automation/help/MUIFileSearcher.cs +++ b/src/System.Management.Automation/help/MUIFileSearcher.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; +using System.IO; using System.Text.RegularExpressions; namespace System.Management.Automation diff --git a/src/System.Management.Automation/help/MamlCommandHelpInfo.cs b/src/System.Management.Automation/help/MamlCommandHelpInfo.cs index 08dc624c9..aea0ed479 100644 --- a/src/System.Management.Automation/help/MamlCommandHelpInfo.cs +++ b/src/System.Management.Automation/help/MamlCommandHelpInfo.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Globalization; -using System.Xml; using System.Text; +using System.Xml; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/MamlNode.cs b/src/System.Management.Automation/help/MamlNode.cs index 0d08d0d08..332a79530 100644 --- a/src/System.Management.Automation/help/MamlNode.cs +++ b/src/System.Management.Automation/help/MamlNode.cs @@ -4,9 +4,9 @@ using System.Collections; using System.Collections.ObjectModel; using System.Globalization; -using System.Xml; using System.Reflection; using System.Text; +using System.Xml; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/MamlUtil.cs b/src/System.Management.Automation/help/MamlUtil.cs index d019bd746..999cbe2e2 100644 --- a/src/System.Management.Automation/help/MamlUtil.cs +++ b/src/System.Management.Automation/help/MamlUtil.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Help; using System.Collections.Generic; +using System.Management.Automation.Help; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/PSClassHelpProvider.cs b/src/System.Management.Automation/help/PSClassHelpProvider.cs index 2956d6ad7..6ee8107af 100644 --- a/src/System.Management.Automation/help/PSClassHelpProvider.cs +++ b/src/System.Management.Automation/help/PSClassHelpProvider.cs @@ -7,6 +7,7 @@ using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Xml; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/help/ProviderContext.cs b/src/System.Management.Automation/help/ProviderContext.cs index 044d8524c..cfe2aeafb 100644 --- a/src/System.Management.Automation/help/ProviderContext.cs +++ b/src/System.Management.Automation/help/ProviderContext.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Management.Automation.Internal; using System.Management.Automation.Provider; using System.Xml; -using System.Management.Automation.Internal; using Dbg = System.Management.Automation.Diagnostics; diff --git a/src/System.Management.Automation/help/ProviderHelpProvider.cs b/src/System.Management.Automation/help/ProviderHelpProvider.cs index 78f6459d3..713316574 100644 --- a/src/System.Management.Automation/help/ProviderHelpProvider.cs +++ b/src/System.Management.Automation/help/ProviderHelpProvider.cs @@ -1,13 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using System.Xml; +using System.IO; using System.Reflection; +using System.Xml; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/help/RemoteHelpInfo.cs b/src/System.Management.Automation/help/RemoteHelpInfo.cs index 1b18e6537..3a69a84d8 100644 --- a/src/System.Management.Automation/help/RemoteHelpInfo.cs +++ b/src/System.Management.Automation/help/RemoteHelpInfo.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/help/SaveHelpCommand.cs b/src/System.Management.Automation/help/SaveHelpCommand.cs index a1bb355ab..59801e24c 100644 --- a/src/System.Management.Automation/help/SaveHelpCommand.cs +++ b/src/System.Management.Automation/help/SaveHelpCommand.cs @@ -3,14 +3,14 @@ using System; using System.Collections; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Help; -using System.IO; -using System.Diagnostics.CodeAnalysis; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Help; +using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs b/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs index c0d11250a..252078ba1 100644 --- a/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs +++ b/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs @@ -79,4 +79,4 @@ namespace System.Management.Automation #endregion } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs b/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs index 0127f5518..4e96342e9 100644 --- a/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs +++ b/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs @@ -2,19 +2,19 @@ // Licensed under the MIT License. using System; -using System.Linq; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Runspaces; -using System.Management.Automation.Help; -using System.Net; -using System.IO; -using System.Globalization; +using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Linq; +using System.Management.Automation; +using System.Management.Automation.Help; +using System.Management.Automation.Internal; +using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; +using System.Net; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/help/UpdatableHelpInfo.cs b/src/System.Management.Automation/help/UpdatableHelpInfo.cs index 659042363..e4eea1ef9 100644 --- a/src/System.Management.Automation/help/UpdatableHelpInfo.cs +++ b/src/System.Management.Automation/help/UpdatableHelpInfo.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Management.Automation.Internal; -using System.Globalization; -using System.Diagnostics; -using System.Text; using System.Collections.ObjectModel; +using System.Diagnostics; +using System.Globalization; +using System.Management.Automation.Internal; +using System.Text; namespace System.Management.Automation.Help { diff --git a/src/System.Management.Automation/help/UpdatableHelpModuleInfo.cs b/src/System.Management.Automation/help/UpdatableHelpModuleInfo.cs index fd5d06601..893f46344 100644 --- a/src/System.Management.Automation/help/UpdatableHelpModuleInfo.cs +++ b/src/System.Management.Automation/help/UpdatableHelpModuleInfo.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Globalization; using System.Diagnostics; +using System.Globalization; namespace System.Management.Automation.Help { diff --git a/src/System.Management.Automation/help/UpdatableHelpUri.cs b/src/System.Management.Automation/help/UpdatableHelpUri.cs index 747ec7234..eea27f053 100644 --- a/src/System.Management.Automation/help/UpdatableHelpUri.cs +++ b/src/System.Management.Automation/help/UpdatableHelpUri.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Globalization; using System.Diagnostics; +using System.Globalization; namespace System.Management.Automation.Help { diff --git a/src/System.Management.Automation/help/UpdateHelpCommand.cs b/src/System.Management.Automation/help/UpdateHelpCommand.cs index e5514ff6e..e670ea3d6 100644 --- a/src/System.Management.Automation/help/UpdateHelpCommand.cs +++ b/src/System.Management.Automation/help/UpdateHelpCommand.cs @@ -2,14 +2,14 @@ // Licensed under the MIT License. using System; -using System.Management.Automation; -using System.Management.Automation.Internal; -using System.Management.Automation.Help; -using System.IO; -using System.Globalization; using System.Collections.ObjectModel; -using System.Diagnostics.CodeAnalysis; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Globalization; +using System.IO; +using System.Management.Automation; +using System.Management.Automation.Help; +using System.Management.Automation.Internal; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/logging/LogProvider.cs b/src/System.Management.Automation/logging/LogProvider.cs index cf352e29b..46f4bcb19 100644 --- a/src/System.Management.Automation/logging/LogProvider.cs +++ b/src/System.Management.Automation/logging/LogProvider.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Collections.Generic; -using System.Text; using System.Management.Automation.Internal; +using System.Text; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/logging/MshLog.cs b/src/System.Management.Automation/logging/MshLog.cs index 078f27b56..e48b3fb28 100644 --- a/src/System.Management.Automation/logging/MshLog.cs +++ b/src/System.Management.Automation/logging/MshLog.cs @@ -4,11 +4,11 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Globalization; using System.Management.Automation.Runspaces; using System.Management.Automation.Tracing; using System.Security; using System.Threading; -using System.Globalization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs index 35e4de7b4..52711fee8 100644 --- a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs +++ b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs @@ -3,10 +3,10 @@ using System.Collections; using System.Collections.Generic; -using System.Diagnostics; -using System.Resources; using System.ComponentModel; +using System.Diagnostics; using System.Globalization; +using System.Resources; using System.Text; using System.Threading; diff --git a/src/System.Management.Automation/namespaces/AliasProvider.cs b/src/System.Management.Automation/namespaces/AliasProvider.cs index aafed93a8..376cf0f8e 100644 --- a/src/System.Management.Automation/namespaces/AliasProvider.cs +++ b/src/System.Management.Automation/namespaces/AliasProvider.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; -using Dbg = System.Management.Automation; using System.Collections; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; +using Dbg = System.Management.Automation; + namespace Microsoft.PowerShell.Commands { /// diff --git a/src/System.Management.Automation/namespaces/CoreCommandContext.cs b/src/System.Management.Automation/namespaces/CoreCommandContext.cs index fa03f3366..0f0678f4c 100644 --- a/src/System.Management.Automation/namespaces/CoreCommandContext.cs +++ b/src/System.Management.Automation/namespaces/CoreCommandContext.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/namespaces/DriveProviderBase.cs b/src/System.Management.Automation/namespaces/DriveProviderBase.cs index e58f24706..2a6e6ff03 100644 --- a/src/System.Management.Automation/namespaces/DriveProviderBase.cs +++ b/src/System.Management.Automation/namespaces/DriveProviderBase.cs @@ -2,9 +2,10 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; -using Dbg = System.Management.Automation; using System.Management.Automation.Internal; +using Dbg = System.Management.Automation; + namespace System.Management.Automation.Provider { #region DriveCmdletProvider diff --git a/src/System.Management.Automation/namespaces/EnvironmentProvider.cs b/src/System.Management.Automation/namespaces/EnvironmentProvider.cs index a8c039948..a5c210175 100644 --- a/src/System.Management.Automation/namespaces/EnvironmentProvider.cs +++ b/src/System.Management.Automation/namespaces/EnvironmentProvider.cs @@ -2,13 +2,14 @@ // Licensed under the MIT License. using System; -using Dbg = System.Management.Automation; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; +using Dbg = System.Management.Automation; + namespace Microsoft.PowerShell.Commands { /// diff --git a/src/System.Management.Automation/namespaces/FileSystemContentStream.cs b/src/System.Management.Automation/namespaces/FileSystemContentStream.cs index 816c0ed58..f18bb4770 100644 --- a/src/System.Management.Automation/namespaces/FileSystemContentStream.cs +++ b/src/System.Management.Automation/namespaces/FileSystemContentStream.cs @@ -13,6 +13,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; + using Dbg = System.Management.Automation; namespace Microsoft.PowerShell.Commands diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs index db3d68962..e58ee43f5 100644 --- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs +++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs @@ -13,15 +13,17 @@ using System.Linq; using System.Management.Automation; using System.Management.Automation.Internal; using System.Management.Automation.Provider; +using System.Management.Automation.Runspaces; +using System.Runtime.InteropServices; using System.Security; using System.Security.AccessControl; using System.Text; using System.Xml; using System.Xml.XPath; + using Microsoft.Win32.SafeHandles; + using Dbg = System.Management.Automation; -using System.Runtime.InteropServices; -using System.Management.Automation.Runspaces; namespace Microsoft.PowerShell.Commands { diff --git a/src/System.Management.Automation/namespaces/FunctionProvider.cs b/src/System.Management.Automation/namespaces/FunctionProvider.cs index a15bbbe62..c5d603f41 100644 --- a/src/System.Management.Automation/namespaces/FunctionProvider.cs +++ b/src/System.Management.Automation/namespaces/FunctionProvider.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; -using Dbg = System.Management.Automation; using System.Collections; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; +using Dbg = System.Management.Automation; + namespace Microsoft.PowerShell.Commands { /// diff --git a/src/System.Management.Automation/namespaces/LocationGlobber.cs b/src/System.Management.Automation/namespaces/LocationGlobber.cs index efb9ac129..82870358a 100644 --- a/src/System.Management.Automation/namespaces/LocationGlobber.cs +++ b/src/System.Management.Automation/namespaces/LocationGlobber.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Management.Automation.Provider; using System.Text; + using Dbg = System.Management.Automation; namespace System.Management.Automation diff --git a/src/System.Management.Automation/namespaces/RegistryWrapper.cs b/src/System.Management.Automation/namespaces/RegistryWrapper.cs index da134c620..049c65fbd 100644 --- a/src/System.Management.Automation/namespaces/RegistryWrapper.cs +++ b/src/System.Management.Automation/namespaces/RegistryWrapper.cs @@ -429,4 +429,4 @@ namespace Microsoft.PowerShell.Commands #endregion } -} \ No newline at end of file +} diff --git a/src/System.Management.Automation/namespaces/VariableProvider.cs b/src/System.Management.Automation/namespaces/VariableProvider.cs index 693231c9e..994476117 100644 --- a/src/System.Management.Automation/namespaces/VariableProvider.cs +++ b/src/System.Management.Automation/namespaces/VariableProvider.cs @@ -2,12 +2,13 @@ // Licensed under the MIT License. using System; -using Dbg = System.Management.Automation; using System.Collections; using System.Collections.ObjectModel; using System.Management.Automation; using System.Management.Automation.Provider; +using Dbg = System.Management.Automation; + namespace Microsoft.PowerShell.Commands { /// diff --git a/src/System.Management.Automation/security/MshSignature.cs b/src/System.Management.Automation/security/MshSignature.cs index 122a3f2c4..6402c56a8 100644 --- a/src/System.Management.Automation/security/MshSignature.cs +++ b/src/System.Management.Automation/security/MshSignature.cs @@ -1,10 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Dbg = System.Management.Automation; +using System.ComponentModel; using System.Management.Automation.Internal; using System.Security.Cryptography.X509Certificates; -using System.ComponentModel; + +using Dbg = System.Management.Automation; using DWORD = System.UInt32; namespace System.Management.Automation diff --git a/src/System.Management.Automation/security/SecureStringHelper.cs b/src/System.Management.Automation/security/SecureStringHelper.cs index 170a63903..e0992f12f 100644 --- a/src/System.Management.Automation/security/SecureStringHelper.cs +++ b/src/System.Management.Automation/security/SecureStringHelper.cs @@ -2,13 +2,13 @@ // Licensed under the MIT License. using System; -using System.IO; -using System.Security; -using System.Security.Cryptography; -using System.Runtime.InteropServices; using System.Globalization; +using System.IO; using System.Management.Automation; using System.Management.Automation.Internal; +using System.Runtime.InteropServices; +using System.Security; +using System.Security.Cryptography; using System.Text; namespace Microsoft.PowerShell diff --git a/src/System.Management.Automation/security/SecurityManager.cs b/src/System.Management.Automation/security/SecurityManager.cs index 6f447d8ae..940241b26 100644 --- a/src/System.Management.Automation/security/SecurityManager.cs +++ b/src/System.Management.Automation/security/SecurityManager.cs @@ -1,18 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Dbg = System.Management.Automation; using System; -using System.Management.Automation; -using System.Management.Automation.Security; -using System.Management.Automation.Internal; -using System.IO; using System.Collections.ObjectModel; +using System.IO; +using System.Management.Automation; using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Management.Automation.Language; +using System.Management.Automation.Security; using System.Security; using System.Security.Cryptography.X509Certificates; +using Dbg = System.Management.Automation; + namespace Microsoft.PowerShell { /// diff --git a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs index 259002e4c..27656b111 100644 --- a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs +++ b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; -using System.Text; using System.Collections.ObjectModel; +using System.Runtime.Serialization; using System.Security.Permissions; +using System.Text; namespace System.Management.Automation.Runspaces { diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs index 09e5cddae..a4aa70a1a 100644 --- a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs +++ b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs @@ -6,8 +6,8 @@ using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.Reflection; -using System.Text; using System.Security; +using System.Text; using Microsoft.PowerShell.Commands; using Microsoft.Win32; diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinLoadException.cs b/src/System.Management.Automation/singleshell/config/MshSnapinLoadException.cs index dd4ad7d90..b75c50bcb 100644 --- a/src/System.Management.Automation/singleshell/config/MshSnapinLoadException.cs +++ b/src/System.Management.Automation/singleshell/config/MshSnapinLoadException.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; using System.Reflection; +using System.Runtime.Serialization; using System.Security.Permissions; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/utils/ClrFacade.cs b/src/System.Management.Automation/utils/ClrFacade.cs index a9eaea852..f257485c8 100644 --- a/src/System.Management.Automation/utils/ClrFacade.cs +++ b/src/System.Management.Automation/utils/ClrFacade.cs @@ -12,13 +12,14 @@ using System.Management.Automation.Language; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using System.Runtime.InteropServices.ComTypes; using System.Runtime.Loader; +using System.Security; using System.Text; using System.Text.RegularExpressions; using System.Threading; -using System.Security; + using Microsoft.Win32.SafeHandles; -using System.Runtime.InteropServices.ComTypes; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs b/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs index b858651ee..39e22c79a 100644 --- a/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs +++ b/src/System.Management.Automation/utils/CommandDiscoveryExceptions.cs @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; -using System.Text; using System.Collections.ObjectModel; using System.Management.Automation.Internal; +using System.Runtime.Serialization; using System.Security.Permissions; +using System.Text; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/utils/CryptoUtils.cs b/src/System.Management.Automation/utils/CryptoUtils.cs index 930415637..55706f0d1 100644 --- a/src/System.Management.Automation/utils/CryptoUtils.cs +++ b/src/System.Management.Automation/utils/CryptoUtils.cs @@ -1,16 +1,18 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Text; -using System.Security; -using System.Threading; +using System.Diagnostics.CodeAnalysis; +using System.Management.Automation.Remoting; +using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Runtime.Serialization; -using System.Runtime.ConstrainedExecution; +using System.Security; +using System.Text; +using System.Threading; + using Microsoft.Win32.SafeHandles; -using System.Diagnostics.CodeAnalysis; + using Dbg = System.Management.Automation.Diagnostics; -using System.Management.Automation.Remoting; namespace System.Management.Automation.Internal { diff --git a/src/System.Management.Automation/utils/FormatAndTypeDataHelper.cs b/src/System.Management.Automation/utils/FormatAndTypeDataHelper.cs index f9b9bc348..a46fdb056 100644 --- a/src/System.Management.Automation/utils/FormatAndTypeDataHelper.cs +++ b/src/System.Management.Automation/utils/FormatAndTypeDataHelper.cs @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.IO; +using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.IO; +using System.Management.Automation.Host; +using System.Management.Automation.Internal; using System.Reflection; using System.Text; -using System.Management.Automation.Host; -using System.Collections.Concurrent; -using System.Management.Automation.Internal; namespace System.Management.Automation.Runspaces { diff --git a/src/System.Management.Automation/utils/HostInterfacesExceptions.cs b/src/System.Management.Automation/utils/HostInterfacesExceptions.cs index b15053550..f0b80dcf0 100644 --- a/src/System.Management.Automation/utils/HostInterfacesExceptions.cs +++ b/src/System.Management.Automation/utils/HostInterfacesExceptions.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.Serialization; using System.Management.Automation.Internal; +using System.Runtime.Serialization; namespace System.Management.Automation.Host { diff --git a/src/System.Management.Automation/utils/IObjectReader.cs b/src/System.Management.Automation/utils/IObjectReader.cs index 647e1e8b7..5d865f197 100644 --- a/src/System.Management.Automation/utils/IObjectReader.cs +++ b/src/System.Management.Automation/utils/IObjectReader.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Threading; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Runspaces diff --git a/src/System.Management.Automation/utils/MetadataExceptions.cs b/src/System.Management.Automation/utils/MetadataExceptions.cs index f176ebbb7..c7a9e061b 100644 --- a/src/System.Management.Automation/utils/MetadataExceptions.cs +++ b/src/System.Management.Automation/utils/MetadataExceptions.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Diagnostics.CodeAnalysis; -using System.Runtime.Serialization; using System.Management.Automation.Internal; +using System.Runtime.Serialization; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/utils/PlatformInvokes.cs b/src/System.Management.Automation/utils/PlatformInvokes.cs index 9f7977dcc..a25aca6c7 100644 --- a/src/System.Management.Automation/utils/PlatformInvokes.cs +++ b/src/System.Management.Automation/utils/PlatformInvokes.cs @@ -1,11 +1,12 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; -using Microsoft.Win32.SafeHandles; -using System.Security.Permissions; using System.Runtime.ConstrainedExecution; +using System.Runtime.InteropServices; +using System.Security.Permissions; + +using Microsoft.Win32.SafeHandles; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/utils/PsUtils.cs b/src/System.Management.Automation/utils/PsUtils.cs index f9d1e9c06..c46871ad1 100644 --- a/src/System.Management.Automation/utils/PsUtils.cs +++ b/src/System.Management.Automation/utils/PsUtils.cs @@ -2,18 +2,19 @@ // Licensed under the MIT License. using System.Collections; +using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; +using System.Management.Automation.Language; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Xml; + using Microsoft.Win32; -using System.Collections.Generic; -using System.Management.Automation.Language; namespace System.Management.Automation { diff --git a/src/System.Management.Automation/utils/ResourceManagerCache.cs b/src/System.Management.Automation/utils/ResourceManagerCache.cs index 7f8690fd8..6464d9be9 100644 --- a/src/System.Management.Automation/utils/ResourceManagerCache.cs +++ b/src/System.Management.Automation/utils/ResourceManagerCache.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Reflection; using System.Collections.Generic; +using System.Reflection; using System.Resources; namespace System.Management.Automation diff --git a/src/System.Management.Automation/utils/SessionStateExceptions.cs b/src/System.Management.Automation/utils/SessionStateExceptions.cs index 9304aea44..7f516c413 100644 --- a/src/System.Management.Automation/utils/SessionStateExceptions.cs +++ b/src/System.Management.Automation/utils/SessionStateExceptions.cs @@ -2,8 +2,8 @@ // Licensed under the MIT License. using System.Collections.ObjectModel; -using System.Runtime.Serialization; using System.Management.Automation.Internal; +using System.Runtime.Serialization; using System.Security.Permissions; namespace System.Management.Automation diff --git a/src/System.Management.Automation/utils/StringUtil.cs b/src/System.Management.Automation/utils/StringUtil.cs index e5d48e804..99eb63d90 100644 --- a/src/System.Management.Automation/utils/StringUtil.cs +++ b/src/System.Management.Automation/utils/StringUtil.cs @@ -3,6 +3,7 @@ using System.Management.Automation.Host; using System.Threading; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation.Internal diff --git a/src/System.Management.Automation/utils/Verbs.cs b/src/System.Management.Automation/utils/Verbs.cs index 1bfefa963..1bd2efba3 100644 --- a/src/System.Management.Automation/utils/Verbs.cs +++ b/src/System.Management.Automation/utils/Verbs.cs @@ -1,9 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics.CodeAnalysis; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Reflection; + using Dbg = System.Management.Automation.Diagnostics; namespace System.Management.Automation diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs index 4d4e5fd91..68d770d8a 100644 --- a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs +++ b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs @@ -3,10 +3,10 @@ using System.Collections.Concurrent; using System.Collections.Generic; -using System.Diagnostics.PerformanceData; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; using System.Diagnostics; +using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.PerformanceData; +using System.Globalization; using System.Management.Automation.Tracing; namespace System.Management.Automation.PerformanceData diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs index 225bb7ae3..58fc193bd 100644 --- a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs +++ b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.Diagnostics.PerformanceData; using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.PerformanceData; namespace System.Management.Automation.PerformanceData { diff --git a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs index 895e9a030..5cf505bdb 100644 --- a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs +++ b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System.Collections.Generic; using System.Globalization; using System.Management.Automation.Internal; -using System.Collections.Generic; namespace System.Management.Automation.Tracing { diff --git a/src/System.Management.Automation/utils/tracing/TracingGen.cs b/src/System.Management.Automation/utils/tracing/TracingGen.cs index d3bf9c434..2cd5622b3 100644 --- a/src/System.Management.Automation/utils/tracing/TracingGen.cs +++ b/src/System.Management.Automation/utils/tracing/TracingGen.cs @@ -1,8 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. + #if !UNIX -using System.Diagnostics.Eventing; using System.Diagnostics.CodeAnalysis; +using System.Diagnostics.Eventing; namespace System.Management.Automation.Tracing {