NetCoreVersionExtractorA 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 CoreIn 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 pipelineYou 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 dataIf no prefix is provided, the task will save your to Set the BuildNumber with the found versionThe 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. |