Skip to content

Commit bb25f80

Browse files
authored
Update README.md
Example for changing the length of the hex charakters added
1 parent 61cfbb3 commit bb25f80

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ By default, the package will include the output of the command `git describe --l
2323
</PropertyGroup>
2424
```
2525

26+
### Git hash length
27+
28+
Some IDEs and also DevOps platforms show first 8 hex characters. To change the default length from 7 hex characters to 8 hex characters you can add the following:
29+
30+
```xml
31+
<PropertyGroup>
32+
<MSBuildGitHashCommand>git describe --long --always --dirty --exclude=* --abbrev=8</MSBuildGitHashCommand>
33+
</PropertyGroup>
34+
```
35+
2636
### Informational Version (aka Product Version) format
2737

2838
By default, the git hash is appended to the Informational Version attribute value.

0 commit comments

Comments
 (0)