You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 2, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Extracts the git information from disk, combines it with the assembly version, a
34
34
So if your assembly version is `1.0.0.0`, the working branch is `master` and the last commit is `759e9ddb53271dfa9335a3b27e452749a9b22280` then the following attribute will be added to the assembly.
-`%version4%` is replaced with the major, minor, revision, and build version (`1.0.0.0`)
53
53
-`%now%` is replaced with the current short date
54
54
-`%utcnow%` is replaced with the current utc short date
55
+
-`%now%` is replaced with the current short date
56
+
-`%utcnow%` is replaced with the current utc short date
55
57
-`%githash%` is replaced with the SHA1 hash of the branch tip of the repository
56
58
-`%shorthash%` is replaced with the first eight characters of `%githash%`
57
59
-`%branch%` is replaced with the branch name of the repository
@@ -78,7 +80,6 @@ Define the string used to indicate that the code was built from a non clean repo
78
80
<StampChangeString="New text" />
79
81
```
80
82
81
-
82
83
### UseProjectGit
83
84
84
85
Define if you want to start Stamp to start searching for the Git repository in the ProjectDir (`true`) or the SolutionDir (`false`).
@@ -89,6 +90,28 @@ Define if you want to start Stamp to start searching for the Git repository in t
89
90
<StampUseProjectGit='true' />
90
91
```
91
92
93
+
### OverwriteFileVersion
94
+
95
+
(new in 2.0)
96
+
97
+
By default, Stamp will overwrite the `AssemblyFileVersion` with the `AssemblyVersion`. Setting this to `false` will preserve the existing `AssemblyFileVersion`.
98
+
99
+
*Default is `true`*
100
+
101
+
```xml
102
+
<StampOverwriteFileVersion='false' />
103
+
```
104
+
105
+
### UseFileVersion
106
+
107
+
(new in 2.0)
108
+
109
+
By default, Stamp uses the value from `AssemblyVersion` to construct the `AssemblyInformationalVersion`. Set this to `true` to use the `AssemblyFileVersion` instead. **Note:** If this is set to `true`, `OverwriteFileVersion` will be `false` and will ignore any value explicitly set.
0 commit comments