diff --git a/Utilities/DiscUtils.PowerShell/DiscUtils.PowerShell.csproj b/Utilities/DiscUtils.PowerShell/DiscUtils.PowerShell.csproj index b29f884d5..30085d216 100644 --- a/Utilities/DiscUtils.PowerShell/DiscUtils.PowerShell.csproj +++ b/Utilities/DiscUtils.PowerShell/DiscUtils.PowerShell.csproj @@ -1,7 +1,7 @@  - net46;net48 + net46;net48;net8.0 diff --git a/Utilities/DiscUtils.PowerShell/SnapIn.cs b/Utilities/DiscUtils.PowerShell/SnapIn.cs index 83e1cefbb..01c638062 100644 --- a/Utilities/DiscUtils.PowerShell/SnapIn.cs +++ b/Utilities/DiscUtils.PowerShell/SnapIn.cs @@ -20,6 +20,8 @@ // DEALINGS IN THE SOFTWARE. // +#if NETFRAMEWORK + using System.ComponentModel; using System.Management.Automation; @@ -34,3 +36,5 @@ public class SnapIn : PSSnapIn public override string Vendor => "Kenneth Bell"; } + +#endif