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
Copy file name to clipboardExpand all lines: docs/usage/command-line.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ By default GitVersion returns a json object to stdout containing all the [variab
15
15
`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.
16
16
17
17
## 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.
19
19
It will update the following assembly attributes:
20
20
21
21
*`AssemblyVersion` will be set to the `AssemblySemVer` variable.
22
22
*`AssemblyFileVersion` will be set to the `MajorMinorPatch` variable with a appended `.0`.
23
23
*`AssemblyInformationalVersion` will be set to the `InformationalVersion` variable.
24
24
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.
26
26
27
27
By adding `/updateassemblyinfofilename` the name of AssemblyInfo file to update can be set.
0 commit comments