Goodbye .NET Framework 4.8 and RIPEMD160

This commit is contained in:
Matt Nadareski
2020-12-14 15:22:14 -08:00
parent 2ae180fb53
commit 7f7c3ec314
52 changed files with 59 additions and 3033 deletions

View File

@@ -1206,12 +1206,6 @@ namespace SabreTools.Filtering
if (!Filter.PassStringFilter(DatItemFilter.MD5, rom.MD5))
return false;
#if NET_FRAMEWORK
// Filter on RIPEMD160
if (!Filter.PassStringFilter(DatItemFilter.RIPEMD160, rom.RIPEMD160))
return false;
#endif
// Filter on SHA-1
if (!Filter.PassStringFilter(DatItemFilter.SHA1, rom.SHA1))
return false;

View File

@@ -31,9 +31,6 @@ namespace SabreTools.Filtering
public FilterItem<long?> Size { get; private set; } = new FilterItem<long?>() { Positive = null, Negative = null, Neutral = null };
public FilterItem<string> CRC { get; private set; } = new FilterItem<string>();
public FilterItem<string> MD5 { get; private set; } = new FilterItem<string>();
#if NET_FRAMEWORK
public FilterItem<string> RIPEMD160 { get; private set; } = new FilterItem<string>();
#endif
public FilterItem<string> SHA1 { get; private set; } = new FilterItem<string>();
public FilterItem<string> SHA256 { get; private set; } = new FilterItem<string>();
public FilterItem<string> SHA384 { get; private set; } = new FilterItem<string>();
@@ -292,12 +289,6 @@ namespace SabreTools.Filtering
SetStringFilter(MD5, value, negate);
break;
#if NET_FRAMEWORK
case DatItemField.RIPEMD160:
SetStringFilter(RIPEMD160, value, negate);
break;
#endif
case DatItemField.SHA1:
SetStringFilter(SHA1, value, negate);
break;

View File

@@ -1,16 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;netcoreapp3.1;net5.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
<RuntimeIdentifiers>win10-x64;win7-x86</RuntimeIdentifiers>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net48'">
<DefineConstants>NET_FRAMEWORK</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SabreTools.Core\SabreTools.Core.csproj" />
<ProjectReference Include="..\SabreTools.DatFiles\SabreTools.DatFiles.csproj" />