Skip to content

Commit ba7d3cd

Browse files
Oren NovotnyJakeGinnivan
authored andcommitted
Update docs for vso-agent
1 parent 121674b commit ba7d3cd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Visual Studio Online (Build vNext) Setup
2+
## Basic Usage
3+
In [Visual Studio Online](https://www.visualstudio.com/) build vNext (the web based build system) you can add a build step as follows:
4+
5+
* **Build Step:** Command Line
6+
* Might need to fully qualify the path.
7+
* Tip: Use a script and/or another command step to call `NuGet Install GitVersion.CommandLine` first so you don't have to check in the exe.
8+
* **Tool:** `GitVersion.exe`
9+
* **Arguments:** `/output buildserver /updateassemblyinfo true`
10+
11+
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%`
25+
26+

0 commit comments

Comments
 (0)