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
Then in your build parameters simply [add a placeholder](#nuget-in-teamcity) of the GitVersion variables you would like to use.
12
+
13
+
GitVersion writes build parameters into VSO, so they will automatically be passed to your build scripts to use.
14
+
15
+
## GitVersion Build Step for VSO
16
+
Visual Studio Online has support for custom build steps. This is planned but TBD. For now, the command line does work.
17
+
18
+
19
+
## Running inside TeamCity
20
+
* We output the individual values of the GitVersion version as the build parameter: `GitVersion.*` (Eg: `GitVersion.Major`) if you need access to them in your build script
21
+
22
+
### NuGet in VSO
23
+
* Add dummy parameter to the project called `GitVersion.NuGetVersion`.
24
+
* Then setup you nuget pack build set the "version" to `%GitVersion.NuGetVersion%`
0 commit comments