Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>.NET Core / Standard Version Extractor
.NET Core / Standard Version Extractor

.NET Core / Standard Version Extractor

Matthew de Beer

|
186 installs
| (0) | Free
Useful for retrieving the <Version> element from a .NET Core / Standard csproj file.
Get it free

NetCoreVersionExtractor

A custom build task for Azure Devops that extracts the Version property from .NET Core and .NET Standard project files.

Cross platform and ready for .NET Core

In contrast to other build tasks in the market place, this task will run on both Windows and Linux agents, and is written to extract the element from .NET Core csproj files. If you need to extract this information from Assembly info files/properties, take a look at some of the other great custom tasks out there.

Re-usable within your pipeline

You can provide an optional prefix which will be prepended before the variable set by the task. This allows you to reuse this task within your pipeline without losing any information from previous runs.

The prefix should be alphanumeric and up to 25 characters.

Reading the data

If no prefix is provided, the task will save your to $(ProjectVersion). If a prefix is provided it will be saved to $(Prefix-ProjectVersion).

Set the BuildNumber with the found version

The task also gives you the option to set the Build Number for the current Build equal to the version number found in the csproj file. Combined with tagging of the commit that initiated the build, this gives you great visibility from source control, to build logs, to your package management solution.

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