0
votes

I have set up a Build Definition to build a solution on Visual Studio Online (VSO). It's working fine, but it builds all the code every time when I check in the code.

How can I build a particular changeset from the code?

How can I use/pass this number to the "MSBuild Arguments" to use it there for deployment?

1
Which build system are you using? v-Next or XAML?Eddie Chen - MSFT

1 Answers

0
votes

You need to turn off the CI build feature(Uncheck "Continuous integration (CI)" option under "Triggers" tab in your build definition) if you don't want it to build all the code every time when you check in.

To build a particular changeset, you can enter the changeset number in "Source Version" textbox when you queue a new build. (In Git, it is "Commit" textbox)enter image description here

To pass the version number to MSBuild Arguments, you can use the pre-defined variable "$(Build.SourceVersion)", it is filled with the source version number you specified when you queue the build.