diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-02 20:55:32 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-02 20:55:32 +0700 |
commit | 0071895e6b79cd2f02f14824f4a94bd183c1afab (patch) | |
tree | 75cbe2928d50d71a1a023b787f5e0d66bedacf22 | |
parent | A few package validation fixes (diff) | |
download | BouncyCastle.NET-ed25519-0071895e6b79cd2f02f14824f4a94bd183c1afab.tar.xz |
Enable package validation
- limited by Span-based variant methods
-rw-r--r-- | crypto/src/BouncyCastle.Crypto.csproj | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crypto/src/BouncyCastle.Crypto.csproj b/crypto/src/BouncyCastle.Crypto.csproj index 5b304b763..0c7f83774 100644 --- a/crypto/src/BouncyCastle.Crypto.csproj +++ b/crypto/src/BouncyCastle.Crypto.csproj @@ -29,6 +29,25 @@ <Title>BouncyCastle.NET Cryptography</Title> </PropertyGroup> + <!--Package Validation--> + <PropertyGroup> + <EnablePackageValidation>true</EnablePackageValidation> + + <!-- TODO: Enable this once there is a baseline version to compare to. --> + <!--<PackageValidationBaselineVersion>2.0.0</PackageValidationBaselineVersion>--> + + <!-- In case we disable signing for local builds, ignore identity mismatch with baseline version. --> + <NoWarn Condition="'$(SignAssembly)' != 'true'">$(NoWarn);CP0003</NoWarn> + + <!-- + We added Span-based variant methods to several APIs. Code that uses those methods or implements the + affected interfaces (or abstract classes) is limited to source compatibility b/w target frameworks. + + TODO: Use suppressions for each individual case of a Span-based method. + --> + <NoWarn>$(NoWarn);CP0005;CP0006</NoWarn> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)'=='Debug'"> <DefineConstants>DEBUG;TRACE</DefineConstants> </PropertyGroup> |