From dd7f120ddc80db52f4a56df31d6ed1863dc699b1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 6 Sep 2025 15:38:36 -0400 Subject: [PATCH] Add .NET Standard 2.x to builds --- BinaryObjectScanner/BinaryObjectScanner.csproj | 2 +- BinaryObjectScanner/Data/ProtectionDictionary.cs | 2 +- BinaryObjectScanner/Extensions.cs | 2 +- BinaryObjectScanner/Scanner.cs | 2 +- ProtectionScan/Program.cs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BinaryObjectScanner/BinaryObjectScanner.csproj b/BinaryObjectScanner/BinaryObjectScanner.csproj index 4427e03b..a83af3c7 100644 --- a/BinaryObjectScanner/BinaryObjectScanner.csproj +++ b/BinaryObjectScanner/BinaryObjectScanner.csproj @@ -2,7 +2,7 @@ - net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0 + net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0;netstandard2.0;netstandard2.1 true false false diff --git a/BinaryObjectScanner/Data/ProtectionDictionary.cs b/BinaryObjectScanner/Data/ProtectionDictionary.cs index 34b93388..8c21b859 100644 --- a/BinaryObjectScanner/Data/ProtectionDictionary.cs +++ b/BinaryObjectScanner/Data/ProtectionDictionary.cs @@ -1,5 +1,5 @@ using System; -#if NET40_OR_GREATER || NETCOREAPP +#if NET40_OR_GREATER || NETCOREAPP || NETSTANDARD2_0_OR_GREATER using System.Collections.Concurrent; #endif using System.Collections.Generic; diff --git a/BinaryObjectScanner/Extensions.cs b/BinaryObjectScanner/Extensions.cs index 88eedefe..41ee037c 100644 --- a/BinaryObjectScanner/Extensions.cs +++ b/BinaryObjectScanner/Extensions.cs @@ -60,7 +60,7 @@ namespace BinaryObjectScanner if (self == null) return false; -#if NETFRAMEWORK +#if NETFRAMEWORK || NETSTANDARD2_0 return self.Contains(value); #else return self.Contains(value, comparisonType); diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index 0872016c..391848f3 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -68,7 +68,7 @@ namespace BinaryObjectScanner _includeDebug = includeDebug; _fileProgress = fileProgress; -#if NET462_OR_GREATER || NETCOREAPP +#if NET462_OR_GREATER || NETCOREAPP || NETSTANDARD2_0_OR_GREATER // Register the codepages System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); #endif diff --git a/ProtectionScan/Program.cs b/ProtectionScan/Program.cs index 93150c08..7411c485 100644 --- a/ProtectionScan/Program.cs +++ b/ProtectionScan/Program.cs @@ -9,7 +9,7 @@ namespace ProtectionScan { static void Main(string[] args) { -#if NET462_OR_GREATER || NETCOREAPP +#if NET462_OR_GREATER || NETCOREAPP || NETSTANDARD2_0_OR_GREATER // Register the codepages System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); #endif