File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
33You must define a version.json file in your project directory or some ancestor of it.
44It is common to define it in the root of your git repo.
5+
6+ ** Important** : Some changes to version.json are not effective until you * commit* the change.
7+ Pushing your commit to a remote is not necessary.
8+
59Here is the content of a sample version.json file you may start with:
610
711``` json
@@ -25,7 +29,10 @@ The content of the version.json file is a JSON serialized object with these prop
2529``` js
2630{
2731 " version" : " x.y-prerelease" , // required (unless the "inherit" field is set to true and a parent version.json file sets this.)
28- " assemblyVersion" : " x.y" , // optional. Use when x.y for AssemblyVersionAttribute differs from the default version property.
32+ " assemblyVersion" : {
33+ " version" : " x.y" , // optional. Use when x.y for AssemblyVersionAttribute differs from the default version property.
34+ " precision" : " revision" // optional. Use when you want a more precise assembly version than the default major.minor.
35+ },
2936 " versionHeightOffset" : " zOffset" , // optional. Use when you need to add/subtract a fixed value from the computed version height.
3037 " semVer1NumericIdentifierPadding" : 4 , // optional. Use when your -prerelease includes numeric identifiers and need semver1 support.
3138 " gitCommitIdShortFixedLength" : 10 , // optional. Set the commit ID abbreviation length.
You can’t perform that action at this time.
0 commit comments