Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
using System.Collections;
using System.Diagnostics;
using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Text;
using System.Resources;
using System.Reflection;

#if CORECLR
using System.ComponentModel;
#else
using System.Threading;
#endif

namespace Microsoft.PowerShell.Commands.Diagnostics.Common
{
Expand All @@ -38,7 +32,6 @@ public static string StringArrayToString(IEnumerable input)
return ret;
}

#if CORECLR
private const string LibraryLoadDllName = "api-ms-win-core-libraryloader-l1-2-0.dll";
private const string LocalizationDllName = "api-ms-win-core-localization-l1-2-1.dll";
private const string SysInfoDllName = "api-ms-win-core-sysinfo-l1-2-1.dll";
Expand All @@ -62,10 +55,6 @@ internal struct OSVERSIONINFOEX

[DllImport(SysInfoDllName, CharSet = CharSet.Unicode, SetLastError = true)]
internal static extern bool GetVersionEx(ref OSVERSIONINFOEX osVerEx);
#else
private const string LibraryLoadDllName = "kernel32.dll";
private const string LocalizationDllName = "kernel32.dll";
#endif

private const uint FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100;
private const uint FORMAT_MESSAGE_IGNORE_INSERTS = 0x00000200;
Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.WSMan.Management/CredSSP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
using System.Globalization;
using System.Security;
using System.Threading;
#if CORECLR
using System.Xml.XPath;
#endif

using Dbg = System.Management.Automation;

Expand Down
3 changes: 0 additions & 3 deletions src/Microsoft.WSMan.Management/WsManHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
using System.Management.Automation;
using System.Management.Automation.Provider;
using System.Threading;
#if CORECLR
using System.Xml.XPath;
#endif

namespace Microsoft.WSMan.Management
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@ public override CultureInfo CurrentUICulture
{
get
{
#if CORECLR // No CultureInfo.InstalledUICulture In CoreCLR. Locale cannot be changed On CSS.
CultureInfo ci = _externalHostRef.Value.CurrentUICulture ?? CultureInfo.CurrentUICulture;
#else
CultureInfo ci = _externalHostRef.Value.CurrentUICulture ?? CultureInfo.InstalledUICulture;
#endif
return ci;
}
}
Expand Down