From a41d02065bdef9202e1310cb99bccbcd39e6b365 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Wed, 23 Sep 2020 13:26:42 -0700 Subject: [PATCH] Include commit SHA in `[AssemblyInformationalVersion]` value (#22649) * Add `[AssemblyMetadata("CommitHash", ...)]` to all C# assemblies - see dotnet/arcade#5866 discussion - provide the commit SHA though not in usual `[AssemblyInformationalVersion]` format * Include `[AssemblyMetadata("Serviceable", "true")]` too - see dotnet/arcade#1526 --- Directory.Build.targets | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Directory.Build.targets b/Directory.Build.targets index 5db8006e8bf..e05d93621ae 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -23,4 +23,21 @@ PrivateAssets="all" IsImplicitlyDefined="true" /> + + + + + <_Parameter1>CommitHash + <_Parameter2>$(SourceRevisionId) + + + + <_Parameter1>Serviceable + <_Parameter2>True + + +