diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/BouncyCastle.Crypto.csproj | 11 | ||||
-rw-r--r-- | crypto/test/BouncyCastle.Crypto.Tests.csproj | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/crypto/src/BouncyCastle.Crypto.csproj b/crypto/src/BouncyCastle.Crypto.csproj index a22f71335..b7fc0cf30 100644 --- a/crypto/src/BouncyCastle.Crypto.csproj +++ b/crypto/src/BouncyCastle.Crypto.csproj @@ -24,6 +24,7 @@ <Product>BouncyCastle.NET</Product> <PublishRepositoryUrl>true</PublishRepositoryUrl> <Title>BouncyCastle.NET Cryptography</Title> + <Configurations>Debug;Release;Publish</Configurations> </PropertyGroup> <!-- CI systems other than GitLab might need different conditions --> @@ -72,6 +73,13 @@ <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)'=='Publish'"> + <DefineConstants /> + <GenerateDocumentationFile>true</GenerateDocumentationFile> + <!-- Deterministic build. --> + <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> + </PropertyGroup> + <ItemGroup> <None Remove="**\*.properties" /> <None Remove="pqc\crypto\**\*.bz2" /> @@ -102,4 +110,7 @@ <!-- Here we can override/use any MSBuild properties set by Nerdbank.GitVersioning --> </PropertyGroup> </Target> + <Target Name="SignAssemblies" AfterTargets="PostBuildEvent" Condition="'$(Configuration)'=='Publish'"> + <Exec Command="call "$(ProjectDir)..\..\signfile.bat" "$(TargetPath)"" /> + </Target> </Project> diff --git a/crypto/test/BouncyCastle.Crypto.Tests.csproj b/crypto/test/BouncyCastle.Crypto.Tests.csproj index 45a03b0e7..94d2eff7b 100644 --- a/crypto/test/BouncyCastle.Crypto.Tests.csproj +++ b/crypto/test/BouncyCastle.Crypto.Tests.csproj @@ -8,6 +8,7 @@ <NoWarn>618;1591</NoWarn> <RootNamespace>Org.BouncyCastle</RootNamespace> <RunAnalyzersDuringBuild>False</RunAnalyzersDuringBuild> + <Configurations>Debug;Release;Publish</Configurations> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)'=='Debug'"> @@ -18,6 +19,10 @@ <DefineConstants>DEBUG;TRACE</DefineConstants> </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)'=='Publish'"> + <DefineConstants>DEBUG;TRACE</DefineConstants> + </PropertyGroup> + <ItemGroup> <Compile Include="src\**\*.cs" Exclude="**\examples\**\*.cs" /> <EmbeddedResource Include="data\**\*.*" Exclude="**\README.txt" /> |