Skip to content

Commit b73d835

Browse files
committed
Created new configuration-option assembly-file-versioning-scheme: It has the same possible options as assembly-versioning-scheme and it is used for generating the AssamblyFileVersion just in the same matter as the AssemblyVersion.
Since the AssemblyVersion is used for referencing and AssemblyLoading and AssemblyFileVersion is just a representation of the version / build of the assembly, we can now configure both independent. Default setting is MajorMinorPatch for both options.
1 parent 8650152 commit b73d835

File tree

52 files changed

+150
-41
lines changed

Some content is hidden

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

52 files changed

+150
-41
lines changed

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":"",

src/GitVersionCore.Tests/ConfigProviderTests.CanWriteOutEffectiveConfiguration.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
assembly-versioning-scheme: MajorMinorPatch
2+
assembly-file-versioning-scheme: MajorMinorPatch
23
mode: ContinuousDelivery
34
tag-prefix: '[vV]'
45
continuous-delivery-fallback-tag: ci

0 commit comments

Comments
 (0)