Skip to content

Commit 776021e

Browse files
committed
Merge pull request #703 from pascalberger/VbDoc
Add documentation about support of VB.NET
2 parents fbd004c + d759f41 commit 776021e

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ You can just run `GitVersion.exe` in your repository to see what variables are a
3737
There are two ways to consume GitVersion, the first is by running GitVersion.exe. The second is an MSBuild task. The MSBuild task is really easy to get up and running, simply install GitVersionTask from NuGet and it will integrate into your project and write out variables to your build server if it's running on one. The exe offers more options and works for not just .net projects.
3838

3939
Read more about [using GitVersion](usage/usage.md)
40+
41+
## Supported languages and frameworks
42+
GitVersion is language and framework agnostic.
43+
44+
### Automatic update of version in projects
45+
GitVersion supports the following projects to automatically update its version information.
46+
47+
| ProjectType | Command Line Tool | MS Build Task |
48+
| :------------------------------------ | :-------------------------- | :------------- |
49+
| C# Project with `AssemblyInfo.cs` | Supported | Supported |
50+
| VB.NET Project with `AssemblyInfo.vb` | Supported | Not supported |

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)