Forum Discussion
mluhring
Feb 10, 2024Copper Contributor
What happened to my GitVersion pipeline task?
All of a sudden this afternoon my pipelines are failing due to GitVersion no longer being installed and not being an available task to install. Anyone know why this happened?
Martin_Dufresne
Copper Contributor
Somehow there's a breaking change.
Replace your GitVersion task with these two:
- task: gitversion/setup@0
inputs:
versionSpec: '5.x'
preferLatestVersion: true
- task: gitversion/execute@0
inputs:
additionalArguments: '/updateassemblyinfo "src/Solution Items/SharedAssemblyInfo.cs"'
We had to use additionalArguments because the task's GUI parameter doesn't seem to like the space in our path.
This bug applies to Marketplace extension GitTools:
Extension details: Build tasks for easy semantic versioning for projects using Git and release management.
Publisher: GitTools
Installed version: 0.11.0.24020712 (Latest)
Last updated: Feb 7, 2024 at 7:46 AM EST
mluhring
Feb 12, 2024Copper Contributor
Martin_Dufresne
I put in the fix Saturday morning. Apparently Microsoft removed deprecated tasks without regard to whether people were using them.
- ChristianEstayFeb 12, 2024Copper Contributor
mluhring Hi!, please can you tell me, how do you fix the pipeline in Azure DevOps?
- mluhringFeb 12, 2024Copper ContributorSee the reply from Martin_Dufresne
- ChristianEstayFeb 12, 2024Copper Contributorooops...thanks a lot!!