Support back to net40

This commit is contained in:
Matt Nadareski
2024-12-28 17:21:38 -05:00
parent 44ba3cb148
commit af5118c20b
2 changed files with 4 additions and 1 deletions

View File

@@ -104,12 +104,14 @@ namespace SabreTools
// Set the new log level based on settings
LoggerImpl.LowestLogLevel = feature.LogLevel;
#if NET452_OR_GREATER || NETCOREAPP
// If output is being redirected or we are in script mode, don't allow clear screens
if (!Console.IsOutputRedirected && feature.ScriptMode)
{
Console.Clear();
Globals.SetConsoleHeader("SabreTools");
}
#endif
// Now process the current feature
Dictionary<string, Feature?> features = _help.GetEnabledFeatures();

View File

@@ -2,9 +2,10 @@
<PropertyGroup>
<!-- Assembly Properties -->
<TargetFrameworks>net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<OutputType>Exe</OutputType>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<LangVersion>latest</LangVersion>
<NoWarn>NU1902;NU1903</NoWarn>