From 8276843268ddccc19130dab0d47fa7aaf46922e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sun, 5 Jul 2020 19:07:51 +0200 Subject: [PATCH] Move the feature constants from Directory.Build.props to Directory.Build.targets to be able to use TargetFrameworkIdentifier-based conditions --- Directory.Build.props | 30 +---------- Directory.Build.targets | 53 +++++++++++++++++++ Directory.Packages.props | 14 +++-- .../OpenIddict.Abstractions.csproj | 4 +- src/OpenIddict.Core/OpenIddict.Core.csproj | 4 +- .../OpenIddict.Server.csproj | 8 +-- ....Server.AspNetCore.IntegrationTests.csproj | 8 +-- .../OpenIddict.Server.IntegrationTests.csproj | 4 +- ...Iddict.Server.Owin.IntegrationTests.csproj | 4 +- .../OpenIddict.Server.Tests.csproj | 2 +- 10 files changed, 82 insertions(+), 49 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 04381d36..5548005c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -51,37 +51,9 @@ - + - - $(DefineConstants);SUPPORTS_ECDSA - - - - $(DefineConstants);SUPPORTS_CERTIFICATE_GENERATION - $(DefineConstants);SUPPORTS_DIRECT_KEY_CREATION_WITH_SPECIFIED_SIZE - $(DefineConstants);SUPPORTS_EPHEMERAL_KEY_SETS - $(DefineConstants);SUPPORTS_KEY_DERIVATION_WITH_SPECIFIED_HASH_ALGORITHM - - - - $(DefineConstants);SUPPORTS_BASE64_SPAN_CONVERSION - $(DefineConstants);SUPPORTS_STATIC_RANDOM_NUMBER_GENERATOR_METHODS - $(DefineConstants);SUPPORTS_TIME_CONSTANT_COMPARISONS - - - - $(DefineConstants);SUPPORTS_BCL_ASYNC_ENUMERABLE - $(DefineConstants);SUPPORTS_GENERIC_HOST - $(DefineConstants);SUPPORTS_SERVICE_PROVIDER_IN_HTTP_MESSAGE_HANDLER_BUILDER - - diff --git a/Directory.Build.targets b/Directory.Build.targets index af60f0fe..0af844a1 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -15,6 +15,59 @@ false + + $(DefineConstants);SUPPORTS_ECDSA + + + + $(DefineConstants);SUPPORTS_CERTIFICATE_GENERATION + $(DefineConstants);SUPPORTS_DIRECT_KEY_CREATION_WITH_SPECIFIED_SIZE + $(DefineConstants);SUPPORTS_EPHEMERAL_KEY_SETS + $(DefineConstants);SUPPORTS_KEY_DERIVATION_WITH_SPECIFIED_HASH_ALGORITHM + + + + $(DefineConstants);SUPPORTS_CERTIFICATE_HASHING_WITH_SPECIFIED_ALGORITHM + + + + $(DefineConstants);SUPPORTS_BASE64_SPAN_CONVERSION + $(DefineConstants);SUPPORTS_STATIC_RANDOM_NUMBER_GENERATOR_METHODS + $(DefineConstants);SUPPORTS_TIME_CONSTANT_COMPARISONS + + + + $(DefineConstants);SUPPORTS_GENERIC_HOST + $(DefineConstants);SUPPORTS_SERVICE_PROVIDER_IN_HTTP_MESSAGE_HANDLER_BUILDER + + + + $(DefineConstants);SUPPORTS_BCL_ASYNC_ENUMERABLE + +