Skip to content

Commit

Permalink
Added comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
artempushkin committed Jan 8, 2024
1 parent a4609d0 commit 95223c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Abstractions/ExecutionContext/BaseExecutionContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ protected static string GetBuildVersion()
if (assembly != null)
{
FileVersionInfo assemblyVersion = FileVersionInfo.GetVersionInfo(assembly.Location);
// We used assemblyVersion.ProductVersion previously, but in net8 it was changed to include commit hash.
// More details here: https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/source-link
buildVersion = $"{assemblyVersion.ProductMajorPart}.{assemblyVersion.ProductMinorPart}.{assemblyVersion.ProductBuildPart}.{assemblyVersion.ProductPrivatePart}";
}

Expand Down

0 comments on commit 95223c8

Please sign in to comment.