summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--crypto/src/crypto.csproj9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/src/crypto.csproj b/crypto/src/crypto.csproj
index d7c695eb1..2c47c590c 100644
--- a/crypto/src/crypto.csproj
+++ b/crypto/src/crypto.csproj
@@ -52,4 +52,13 @@
       <AssemblyVersion>$(BuildVersionSimple)</AssemblyVersion>
     </PropertyGroup>
   </Target>
+  
+  <Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
+    <ItemGroup>
+      <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
+        <_Parameter1>CommitHash</_Parameter1>
+        <_Parameter2>$(SourceRevisionId)</_Parameter2>
+      </AssemblyAttribute>
+    </ItemGroup>
+  </Target>
 </Project>
\ No newline at end of file