Skip to content

Commit 1518e4d

Browse files
committed
Merge branch 'master' of https://github.com/jensbrand/GitVersion
2 parents bda738d + b669e5f commit 1518e4d

File tree

61 files changed

+225
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+225
-69
lines changed

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Task("Create-Release-Notes")
124124
.WithCriteria(() => IsMainGitVersionRepo && IsMainGitVersionBranch && !IsPullRequest)
125125
.Does(() =>
126126
{
127-
var githubToken = EnvironmentVariable("GitHubToken");
127+
var githubToken = EnvironmentVariable("GitHubToken");
128128

129129
if(!string.IsNullOrWhiteSpace(githubToken))
130130
{

docs/configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The global configuration look like this:
3030
```yaml
3131
next-version: 1.0
3232
assembly-versioning-scheme: MajorMinorPatch
33+
assembly-file-versioning-scheme: MajorMinorPatchTag
3334
assembly-informational-format: '{InformationalVersion}'
3435
mode: ContinuousDelivery
3536
increment: Inherit
@@ -61,6 +62,12 @@ Strong Naming. Note: you can use `None` to skip updating the `AssemblyVersion`
6162
while still updating the `AssemblyFileVersion` and `AssemblyInformationVersion`
6263
attributes.
6364

65+
### assembly-file-versioning-scheme
66+
When updating assembly info, `assembly-file-versioning-scheme` tells GitVersion how
67+
to treat the `AssemblyFileVersion` attribute. Note: you can use `None` to skip updating the `AssemblyFileVersion`
68+
while still updating the `AssemblyVersion` and `AssemblyInformationVersion`
69+
attributes.
70+
6471
### assembly-informational-format
6572
Set this to any of the available [variables](/more-info/variables) to change the
6673
value of the `AssemblyInformationalVersion` attribute. Default set to

docs/more-info/variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ For the `release/3.0.0` branch of GitVersion it shows:
1919
"LegacySemVer":"3.0.0-beta1",
2020
"LegacySemVerPadded":"3.0.0-beta0001",
2121
"AssemblySemVer":"3.0.0.0",
22+
"AssemblySemFileVer":"3.0.0.0",
2223
"FullSemVer":"3.0.0-beta.1+1",
2324
"InformationalVersion":"3.0.0-beta.1+1.Branch.release/3.0.0.Sha.28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
2425
"BranchName":"release/3.0.0",

src/GitVersionCore.Tests/Approved/JsonVersionBuilderTests.Json.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":0,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.0-unstable4",
1515
"LegacySemVerPadded":"1.2.0-unstable0004",
1616
"AssemblySemVer":"1.2.0.0",
17+
"AssemblySemFileVer":"1.2.0.0",
1718
"FullSemVer":"1.2.0-unstable.4+5",
1819
"InformationalVersion":"1.2.0-unstable.4+5.Branch.feature1.Sha.commitSha",
1920
"BranchName":"feature1",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreRelease.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3-unstable4",
1515
"LegacySemVerPadded":"1.2.3-unstable0004",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3-unstable.4+5",
1819
"InformationalVersion":"1.2.3-unstable.4+5.Branch.develop.Sha.commitSha",
1920
"BranchName":"develop",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3-unstable4",
1515
"LegacySemVerPadded":"1.2.3-unstable00004",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3-unstable.4+5",
1819
"InformationalVersion":"1.2.3-unstable.4+5.Branch.develop.Sha.commitSha",
1920
"BranchName":"develop",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForStable.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3",
1515
"LegacySemVerPadded":"1.2.3",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3+5",
1819
"InformationalVersion":"1.2.3+5.Branch.develop.Sha.commitSha",
1920
"BranchName":"develop",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForPreRelease.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3-unstable5",
1515
"LegacySemVerPadded":"1.2.3-unstable0005",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3-unstable.5",
1819
"InformationalVersion":"1.2.3-unstable.5+Branch.develop.Sha.commitSha",
1920
"BranchName":"develop",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3-ci5",
1515
"LegacySemVerPadded":"1.2.3-ci0005",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3-ci.5",
1819
"InformationalVersion":"1.2.3-ci.5+Branch.develop.Sha.commitSha",
1920
"BranchName":"develop",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommitIsTagged.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"Major":1,
33
"Minor":2,
44
"Patch":3,
@@ -14,6 +14,7 @@
1414
"LegacySemVer":"1.2.3",
1515
"LegacySemVerPadded":"1.2.3",
1616
"AssemblySemVer":"1.2.3.0",
17+
"AssemblySemFileVer":"1.2.3.0",
1718
"FullSemVer":"1.2.3+5",
1819
"InformationalVersion":"1.2.3+5.Sha.commitSha",
1920
"BranchName":"",

0 commit comments

Comments
 (0)