From 436b5c9f27b50c50d82b8e79b9bc0f6a95bb08f5 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Fri, 8 Jul 2016 09:26:04 -0700 Subject: [PATCH] Exclude the P/invoke code that is not supposed to be in CoreCLR build --- src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs b/src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs index e51685365..97fdbc978 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/CommonUtils.cs @@ -11,6 +11,7 @@ namespace Microsoft.PowerShell.Commands.Diagnostics.Common internal static class CommonUtilities { +#if !CORECLR // // StringArrayToString helper converts a string array into a comma-separated string. // Note this has only limited use, individual strings cannot have commas. @@ -111,13 +112,13 @@ namespace Microsoft.PowerShell.Commands.Diagnostics.Common } return formatError; } +#endif public static ResourceManager GetResourceManager() { // this naming pattern is dictated by the dotnet cli return new ResourceManager("Microsoft.PowerShell.Commands.Diagnostics.resources.GetEventResources", typeof(CommonUtilities).GetTypeInfo().Assembly); } - } }