Re-enable .NET Framework 4.0 building in Check

This commit is contained in:
Matt Nadareski
2023-11-22 16:02:08 -05:00
parent f350904441
commit 8b8b51ace4
3 changed files with 5 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
- Update to BinaryObjectScanner 3.0.2
- Re-enable .NET Framework 4.0 building in Core
- Re-enable .NET Framework 4.0 building in UI.Core
- Re-enable .NET Framework 4.0 building in Check
### 3.0.0 (2023-11-14)

View File

@@ -2,7 +2,7 @@
<PropertyGroup>
<!-- Assembly Properties -->
<TargetFrameworks>net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
<OutputType>Exe</OutputType>
<CheckEolTargetFramework>false</CheckEolTargetFramework>

View File

@@ -75,7 +75,9 @@ namespace MPF.Check
// Finally, attempt to do the output dance
#if NET20 || NET35 || NET40
var result = env.VerifyAndSaveDumpOutput(resultProgress, protectionProgress);
var resultTask = env.VerifyAndSaveDumpOutput(resultProgress, protectionProgress);
resultTask.Wait();
var result = resultTask.Result;
#else
var result = env.VerifyAndSaveDumpOutput(resultProgress, protectionProgress).ConfigureAwait(false).GetAwaiter().GetResult();
#endif