diff --git a/src/PowerShellEditorServices/Utility/Utils.cs b/src/PowerShellEditorServices/Utility/Utils.cs new file mode 100644 index 000000000..2dc9d5021 --- /dev/null +++ b/src/PowerShellEditorServices/Utility/Utils.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +namespace Microsoft.PowerShell.EditorServices +{ + /// + /// General purpose common utilities to prevent reimplementation. + /// + internal static class Utils + { + /// + /// True if we are running on .NET Core, false otherwise. + /// +#if CoreCLR + public static bool IsNetCore { get; } = true; +#else + public static bool IsNetCore { get; } = false; +#endif + } +}