diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index 8c57b70a3..c1aaaf11c 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -452,7 +452,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration uint offset = 0; byte[] bytes = null; - if (Platform.IsLinux) + if (Platform.IsLinux || Platform.IsMacOS) { bytes = System.Text.Encoding.UTF8.GetBytes(classText); } @@ -633,7 +633,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal { s_tracer.WriteLine("Initializing DSC class cache force={0}"); - if (System.Management.Automation.Platform.IsLinux) + if (Platform.IsLinux || Platform.IsMacOS) { // // Load the base schema files.