Skip to content

Commit f279d35

Browse files
author
Pascal Berger
committed
AssemblyInfo.vb files are also support in the Command Line utility
1 parent 90b8744 commit f279d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/usage/command-line.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ By default GitVersion returns a json object to stdout containing all the [variab
1515
`GitVersion.exe /output buildserver` will change the mode of GitVersion to write out the variables to whatever build server it is running in. You can then use those variables in your build scripts or run different tools to create versioned NuGet packages or whatever you would like to do. See [build servers](../build-server-support/build-server-support.md) for more information about this.
1616

1717
## Inject version metadata into the assembly
18-
`GitVersion.exe /updateassemblyinfo` will recursively search for all `AssemblyInfo.cs` files in the git repo and update them.
18+
`GitVersion.exe /updateassemblyinfo` will recursively search for all `AssemblyInfo.cs` or `AssemblyInfo.vb` files in the git repo and update them.
1919
It will update the following assembly attributes:
2020

2121
* `AssemblyVersion` will be set to the `AssemblySemVer` variable.
2222
* `AssemblyFileVersion` will be set to the `MajorMinorPatch` variable with a appended `.0`.
2323
* `AssemblyInformationalVersion` will be set to the `InformationalVersion` variable.
2424

25-
Note that contrary to when using the [MSBuild Task](msbuild-task.md) the attributes must already exist in the `AssemblyInfo.cs` files prior to calling GitVersion.
25+
Note that contrary to when using the [MSBuild Task](msbuild-task.md) the attributes must already exist in the `AssemblyInfo.cs` or `AssemblyInfo.vb` files prior to calling GitVersion.
2626

2727
By adding `/updateassemblyinfofilename` the name of AssemblyInfo file to update can be set.

0 commit comments

Comments
 (0)