From 8b847421d67189b2563bd1fb4afe58eb34880d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Thu, 23 Apr 2026 12:42:27 +0200 Subject: [PATCH] Replace the SUPPORTS_* constants by the built-in target/platform constants --- Directory.Build.targets | 60 ------------------- ...OpenIddictClientWebIntegrationGenerator.cs | 2 +- .../OpenIddictPolyfills.cs | 34 +++++------ ...lientSystemIntegrationActivationHandler.cs | 2 +- ...ictClientSystemIntegrationConfiguration.cs | 6 +- ...IddictClientSystemIntegrationExtensions.cs | 4 +- ...ctClientSystemIntegrationHandlerFilters.cs | 6 +- ...ystemIntegrationHandlers.Authentication.cs | 31 +++++----- ...ClientSystemIntegrationHandlers.Session.cs | 31 +++++----- ...enIddictClientSystemIntegrationHandlers.cs | 6 +- ...penIddictClientSystemIntegrationHelpers.cs | 38 ++++++------ ...dictClientSystemIntegrationPipeListener.cs | 2 +- ...penIddictClientSystemIntegrationService.cs | 4 +- .../OpenIddictClientSystemNetHttpBuilder.cs | 2 +- ...nIddictClientSystemNetHttpConfiguration.cs | 4 +- .../OpenIddictClientSystemNetHttpHandlers.cs | 15 ++--- .../OpenIddictClientSystemNetHttpOptions.cs | 6 +- .../Managers/OpenIddictApplicationManager.cs | 6 +- .../OpenIddictEntityFrameworkBuilder.cs | 2 +- ...enIddictEntityFrameworkApplicationStore.cs | 4 +- ...IddictEntityFrameworkAuthorizationStore.cs | 4 +- .../OpenIddictEntityFrameworkScopeStore.cs | 4 +- .../OpenIddictEntityFrameworkTokenStore.cs | 4 +- .../OpenIddictEntityFrameworkCoreBuilder.cs | 2 +- ...dictEntityFrameworkCoreApplicationStore.cs | 4 +- ...ctEntityFrameworkCoreAuthorizationStore.cs | 4 +- ...OpenIddictEntityFrameworkCoreScopeStore.cs | 4 +- ...OpenIddictEntityFrameworkCoreTokenStore.cs | 4 +- .../OpenIddictServerBuilder.cs | 6 +- .../OpenIddictServerConfiguration.cs | 6 +- .../OpenIddictServerHandlers.cs | 4 +- ...penIddictValidationSystemNetHttpBuilder.cs | 2 +- ...ictValidationSystemNetHttpConfiguration.cs | 4 +- ...enIddictValidationSystemNetHttpHandlers.cs | 15 ++--- ...penIddictValidationSystemNetHttpOptions.cs | 6 +- ...nIddictServerAspNetCoreIntegrationTests.cs | 2 +- .../OpenIddictServerIntegrationTests.cs | 2 +- .../OpenIddictServerBuilderTests.cs | 6 +- 38 files changed, 128 insertions(+), 220 deletions(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index 9924f73b..47dd176b 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -41,66 +41,6 @@ 7.0 - - $(DefineConstants);SUPPORTS_BROTLI_COMPRESSION - $(DefineConstants);SUPPORTS_CURRENT_USER_ONLY_PIPE_OPTION - $(DefineConstants);SUPPORTS_HEXADECIMAL_STRING_CONVERSION - $(DefineConstants);SUPPORTS_HTTP_CLIENT_DEFAULT_REQUEST_VERSION - $(DefineConstants);SUPPORTS_HTTP_CLIENT_DEFAULT_REQUEST_VERSION_POLICY - $(DefineConstants);SUPPORTS_HTTP_CLIENT_RESILIENCE - $(DefineConstants);SUPPORTS_NAMED_PIPE_STATIC_FACTORY_WITH_ACL - $(DefineConstants);SUPPORTS_ONE_SHOT_HASHING_METHODS - $(DefineConstants);SUPPORTS_ONE_SHOT_KEY_DERIVATION_METHODS - $(DefineConstants);SUPPORTS_OPERATING_SYSTEM_VERSIONS_COMPARISON - $(DefineConstants);SUPPORTS_PEM_ENCODED_KEY_IMPORT - $(DefineConstants);SUPPORTS_RELAXED_URI_LIMITS - $(DefineConstants);SUPPORTS_TEXT_ELEMENT_ENUMERATOR - $(DefineConstants);SUPPORTS_TIME_CONSTANT_COMPARISONS - $(DefineConstants);SUPPORTS_TYPE_DESCRIPTOR_TYPE_REGISTRATION - $(DefineConstants);SUPPORTS_VALUETASK_COMPLETED_TASK - $(DefineConstants);SUPPORTS_X509_CHAIN_POLICY_CLONING - $(DefineConstants);SUPPORTS_X509_CHAIN_POLICY_CUSTOM_TRUST_STORE - $(DefineConstants);SUPPORTS_X509_CHAIN_POLICY_DOWNLOAD_MODE - $(DefineConstants);SUPPORTS_X509_CHAIN_POLICY_TRUST_MODE - $(DefineConstants);SUPPORTS_X509_CHAIN_POLICY_VERIFICATION_TIME_MODE - $(DefineConstants);SUPPORTS_ZLIB_COMPRESSION - - - - $(DefineConstants);SUPPORTS_ANDROID - $(DefineConstants);SUPPORTS_ANDROIDX_BROWSER - - - - $(DefineConstants);SUPPORTS_UIKIT - - - - $(DefineConstants);SUPPORTS_APPKIT - - - - $(DefineConstants);SUPPORTS_AUTHENTICATION_SERVICES - $(DefineConstants);SUPPORTS_FOUNDATION - - - - $(DefineConstants);SUPPORTS_WINDOWS_RUNTIME - -