Exclude the P/invoke code that is not supposed to be in CoreCLR build

This commit is contained in:
Dongbo Wang committed 2016-07-08 14:18:20 -07:00
1 parent a746b5d1d2
commit 436b5c9f27
1 file changed
+2 -1
@@ -11,6 +11,7 @@ namespace Microsoft.PowerShell.Commands.Diagnostics.Common
internal static class CommonUtilities internal static class CommonUtilities
{ {
#if !CORECLR
// //
// StringArrayToString helper converts a string array into a comma-separated string. // StringArrayToString helper converts a string array into a comma-separated string.
// Note this has only limited use, individual strings cannot have commas. // Note this has only limited use, individual strings cannot have commas.
@@ -111,13 +112,13 @@ namespace Microsoft.PowerShell.Commands.Diagnostics.Common
} }
return formatError; return formatError;
} }
#endif
public static ResourceManager GetResourceManager() public static ResourceManager GetResourceManager()
{ {
// this naming pattern is dictated by the dotnet cli // this naming pattern is dictated by the dotnet cli
return new ResourceManager("Microsoft.PowerShell.Commands.Diagnostics.resources.GetEventResources", typeof(CommonUtilities).GetTypeInfo().Assembly); return new ResourceManager("Microsoft.PowerShell.Commands.Diagnostics.resources.GetEventResources", typeof(CommonUtilities).GetTypeInfo().Assembly);
} }
} }
} }