summary refs log tree commit diff
path: root/crypto/src/BouncyCastle.Crypto.csproj
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-02-18 22:43:50 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-02-18 22:43:50 +0700
commit851feee00986b622fadcc856c1399d0c453c4c0f (patch)
tree192dd91c43c6cb4d47672dced2ba7e9cac47dc63 /crypto/src/BouncyCastle.Crypto.csproj
parentSet version to '2.1' (diff)
downloadBouncyCastle.NET-ed25519-release/v2.1.tar.xz
Fix symbols, add SourceLink, deterministic build release-2.1.1 release/v2.1
Diffstat (limited to 'crypto/src/BouncyCastle.Crypto.csproj')
-rw-r--r--crypto/src/BouncyCastle.Crypto.csproj33
1 files changed, 20 insertions, 13 deletions
diff --git a/crypto/src/BouncyCastle.Crypto.csproj b/crypto/src/BouncyCastle.Crypto.csproj
index afdb875c4..a22f71335 100644
--- a/crypto/src/BouncyCastle.Crypto.csproj
+++ b/crypto/src/BouncyCastle.Crypto.csproj
@@ -22,23 +22,26 @@
     <PackageReleaseNotes>https://www.bouncycastle.org/csharp/</PackageReleaseNotes>
     <PackageTags>bouncycastle cryptography dtls encryption open-source openpgp post-quantum security tls</PackageTags>
 	<Product>BouncyCastle.NET</Product>
-    <RepositoryType>git</RepositoryType>
-    <RepositoryUrl>https://github.com/bcgit/bc-csharp</RepositoryUrl>
+	<PublishRepositoryUrl>true</PublishRepositoryUrl>
     <Title>BouncyCastle.NET Cryptography</Title>
   </PropertyGroup>
 
-  <!-- Debugging-->
-  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
-      <DebugType>full</DebugType>
-      <DebugSymbols>true</DebugSymbols>
-      <IncludeSymbols>true</IncludeSymbols>
-      <SymbolPackageFormat>snupkg</SymbolPackageFormat>
+  <!-- CI systems other than GitLab might need different conditions -->
+  <PropertyGroup Condition="'$(CI)' != ''">
+    <!-- Deterministic build. -->
+    <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
   </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)' == 'Release'">
-      <DebugType>pdbonly</DebugType>
-      <DebugSymbols>true</DebugSymbols>
-      <IncludeSymbols>true</IncludeSymbols>
-      <SymbolPackageFormat>snupkg</SymbolPackageFormat>
+
+  <!--Source-Level Debugging-->
+  <PropertyGroup>
+	<!-- Any custom target adding things to the Compile item group needs BeforeTargets="BeforeCompile".	-->
+    <EmbedUntrackedSources>true</EmbedUntrackedSources>
+
+    <!-- Tell SourceLink to use this remote to derive the published git repository URL and source links. -->
+    <GitRepositoryRemoteName>public</GitRepositoryRemoteName>
+
+    <IncludeSymbols>true</IncludeSymbols>
+    <SymbolPackageFormat>snupkg</SymbolPackageFormat>
   </PropertyGroup>
 
   <!--Package Validation-->
@@ -84,6 +87,10 @@
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
     </PackageReference>
+    <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
+      <PrivateAssets>all</PrivateAssets>
+      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
+    </PackageReference>
     <PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119">
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>