Remove Net35.Actions requirement

This commit is contained in:
Matt Nadareski
2025-07-31 14:15:40 -04:00
parent 251bf9ca6d
commit 06e51247e1
3 changed files with 9 additions and 2 deletions

View File

@@ -72,7 +72,6 @@
<ItemGroup>
<PackageReference Include="MinAsyncBridge" Version="0.12.4" Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))" />
<PackageReference Include="Net35.Actions" Version="1.4.0" Condition="$(TargetFramework.StartsWith(`net2`))" />
<PackageReference Include="SabreTools.Compression" Version="0.6.3" />
<PackageReference Include="SabreTools.Hashing" Version="1.4.2" />
<PackageReference Include="SabreTools.IO" Version="1.6.3" />

View File

@@ -47,7 +47,7 @@ namespace BinaryObjectScanner.FileType
/// Ideally, we wouldn't need to circumvent the proper handling of file types just for Executable,
/// but due to the complexity of scanning, this is not currently possible.
/// </remarks>
public ProtectionDictionary DetectDict(Stream stream,
internal ProtectionDictionary DetectDict(Stream stream,
string file,
Func<string, ProtectionDictionary>? getProtections,
bool includeDebug)

View File

@@ -0,0 +1,8 @@
#if NET20
namespace BinaryObjectScanner
{
public delegate TResult Func<in T, out TResult>(T arg);
}
#endif