Support ancient .NET in Core

This commit is contained in:
Matt Nadareski
2024-02-28 19:49:09 -05:00
parent 823a9ca7b7
commit 778399cad7
11 changed files with 269 additions and 184 deletions

View File

@@ -15,6 +15,7 @@ namespace SabreTools.Core
/// </summary>
public static int MaxThreads { get; set; } = Environment.ProcessorCount;
#if NET452_OR_GREATER || NETCOREAPP
/// <summary>
/// ParallelOptions object for use in parallel operations
/// </summary>
@@ -22,6 +23,7 @@ namespace SabreTools.Core
{
MaxDegreeOfParallelism = MaxThreads
};
#endif
#endregion
}