Gitversion Task 5.0 on Self hosted agent failing
Sunil Bindra
11
Reputation points
Hi
We have un-installed .net Core 2.1.0 from all our build agents due to End Of Support. After uninstalling out Gitversion Task 5.0 starts failing, because it requires .net 2.1.0. We have installed .net 10 on all build agents.
What will be the best way to fix this issue. As per policy we can't install 2.1.0 because it is out of support.
We are using Azure DevOps Server 2022 and self hosted agents on our VM's.
Our Build Agent Version are 3.238.0
Here is out Git Version task:-
steps:
- task: gittools.gitversion.gitversion-task.GitVersion@5 displayName: GitVersion inputs: preferBundledVersion: false configFilePath: Build/GitVersion.yml additionalArguments: '/config $(Build.SourcesDirectory)\Build\GitVersion.yml /overrideconfig assembly-versioning-format="{Major}.{Minor}.{Patch}"'
Thanks
Sunil Bindra
Azure DevOps
Sign in to answer