From 463244a31adbfc4e601a8bf28837d184962e97b1 Mon Sep 17 00:00:00 2001 From: LTRData Date: Fri, 9 Aug 2024 00:28:57 +0200 Subject: [PATCH] PowerShell module for .NET 8 --- Utilities/DiscUtils.PowerShell/DiscUtils.PowerShell.csproj | 2 +- Utilities/DiscUtils.PowerShell/SnapIn.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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