Replies: 1 comment 3 replies
-
|
If you don't need the dirty flag and are happy with the full hash, I see no problem in removing the custom target. |
Beta Was this translation helpful? Give feedback.
-
|
If you don't need the dirty flag and are happy with the full hash, I see no problem in removing the custom target. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently in the template for the
Directory.Build.targetsthere is a custom target calledInitializeSourceControlInformation(source). This generates theSourceRevisionIdbased on git describe.Starting with .NET8 Source Link is included in the .NET SDK and populates the
SourceRevisionIdproperty with the full git revision hash.There are some differences between the two behaviours. See the following example with a dirty worktree
Do we still have the use-case for using 'our' specialized implementation?
Beta Was this translation helpful? Give feedback.
All reactions