Skip to content

Using package with Visual Studio Online

johnkattenhorn edited this page Oct 20, 2014 · 1 revision

There seems to be a problem running the build task GetVersionNumber from Visual Studio Online Host Build Agent.

The current theory is that the LOCAL AUTHORITY\Elastic Build (your vso instance) doesn't have the right's to access the build information using this task.

Luckily the task will not run if the VersionNumber property is not empty and the build number is available through an environment variable $(TF_BUILD_BUILDNUMBER).

Amend MSBUILD arguments in the build process template to read (assuming a custom.targets file is used):

/p:GenerateProjectSpecificOutputFolder=true /p:CreateRelease=true /p:VersionNumber="$(TF_BUILD_BUILDNUMBER)"

Clone this wiki locally