Skip to content

Commit 55f44e8

Browse files
Add OriginalRepoCommitHash to assemblies (#6667)
1 parent 65c679b commit 55f44e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Directory.Build.targets

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
</AssemblyAttribute>
6060
</ItemGroup>
6161

62+
<ItemGroup Condition="'$(RepoOriginalSourceRevisionId)' != ''">
63+
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
64+
<_Parameter1>OriginalRepoCommitHash</_Parameter1>
65+
<_Parameter2>$(RepoOriginalSourceRevisionId)</_Parameter2>
66+
</AssemblyAttribute>
67+
</ItemGroup>
68+
6269
<Target Name="AddInternalsVisibleToDynamicProxyGenAssembly2" BeforeTargets="BeforeCompile">
6370
<ItemGroup Condition="'@(InternalsVisibleToDynamicProxyGenAssembly2->Count())' &gt; 0">
6471
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">

0 commit comments

Comments
 (0)