Skip to content

Commit 818d0e3

Browse files
authored
Use the VMR commit hash in .version (#54461)
This puts the VMR's commit hash, provided by the VMR as the property DotNetGitCommitHash, in the .version file. Contributes to dotnet/source-build#3643
1 parent e888ea8 commit 818d0e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
311311
Overwrite="true" />
312312

313313
<ItemGroup>
314-
<VersionLines Include="$(SourceRevisionId)" />
314+
<VersionLines Include="$(DotNetGitCommitHash)" Condition="'$(DotNetGitCommitHash)' != ''" />
315+
<VersionLines Include="$(SourceRevisionId)" Condition="'$(DotNetGitCommitHash)' == ''" />
315316
<VersionLines Include="$(SharedFxVersion)" />
316317
</ItemGroup>
317318

0 commit comments

Comments
 (0)