Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Project Version As Build Variable
Project Version As Build Variable

Project Version As Build Variable

Tomislav Markovski

|
603 installs
| (2) | Free
Build task for reading project versions and setting into variable.
Get it free

Project Version As Build Variable

Read version and set build variable

Reads the project file and creates variables from the Version, available in a number of formats:

Version.Major
Version.Minor
Version.Build
Version.Patch (same as Version.Build)
Version.Revision
Version.MajorMinor
Version.MajorMinorBuild
Version.MajorMinorPatch
Version.MajorMinorBuildRevision
Version.MajorMinorPatchRevision
Version.Full (same as Version.MajorMinorBuildRevision)

An optional prefix can be set so that the task can be used on multiple projects. If the prefix is set to Fabrikam then the Application Version variable can be added to another task as $(Fabrikam.Version.Full).

Advanced Configuration

Specify the name of the tag that holds the version information in your project file. For .NET SDK project file formats, this is usually Version, FileVersion or AssemblyVersion. For older project files, it may be ApplicationVersion

Credits

This extension is a modified version of the Project Version Tools extansion that adds configurability for the project tag. Project Version Tools only works with old .net framework file formats.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft