diff --git a/CHANGELIST.md b/CHANGELIST.md index 8ee45806..64b9a53d 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -22,6 +22,7 @@ - Update Xunit packages - Get Core building with Framework 4.0 - Get UI.Core building with Framework 4.0 +- Get Check building with Framework 4.0 ### 3.0.0 (2023-11-14) diff --git a/MPF.Check/MPF.Check.csproj b/MPF.Check/MPF.Check.csproj index 25623fa2..c17e3a76 100644 --- a/MPF.Check/MPF.Check.csproj +++ b/MPF.Check/MPF.Check.csproj @@ -2,7 +2,7 @@ - net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 + net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0 win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64 Exe false diff --git a/MPF.Check/Program.cs b/MPF.Check/Program.cs index 6fb549e2..6f766399 100644 --- a/MPF.Check/Program.cs +++ b/MPF.Check/Program.cs @@ -74,7 +74,11 @@ namespace MPF.Check var env = new DumpEnvironment(options, filepath, drive, knownSystem, mediaType, internalProgram: null, parameters: null); // Finally, attempt to do the output dance +#if NET40 + var result = env.VerifyAndSaveDumpOutput(resultProgress, protectionProgress); +#else var result = env.VerifyAndSaveDumpOutput(resultProgress, protectionProgress).ConfigureAwait(false).GetAwaiter().GetResult(); +#endif Console.WriteLine(result.Message); } }