Support .NET Framework 2.0

This does not include the UI, as per the same reasons why .NET Framework 4.0 doesn't support it.
This commit is contained in:
Matt Nadareski
2023-11-22 23:38:59 -05:00
parent d2433e4749
commit d68bcfb96a
11 changed files with 22 additions and 23 deletions

View File

@@ -82,9 +82,7 @@ namespace MPF.Core.UI.ViewModels
public static async Task<(bool?, string?)> TestRedumpLogin(string username, string password)
#endif
{
#if NET20 || NET35
return await Task.Run(() => RedumpWebClient.ValidateCredentials(username, password));
#elif NET40
#if NET40
return Task.Factory.StartNew(() => RedumpWebClient.ValidateCredentials(username, password));
#elif NETFRAMEWORK
return await Task.Run(() => RedumpWebClient.ValidateCredentials(username, password));