I have used "Use .Net Core" task in azure to install SDK using below global json.
{
"sdk": {
"version": "6.0.410",
"rollForward": "disable",
"allowPrerelease": false
}
}
But after that in the next .Net Core - "Build"
command pipeline task, while building the application, it uses MSBuild version 17.7.1 instead using 17.6.8
.
Earlier it was correctly picking up MS Build version 17.6.8
and this issue started few days back.
Is there a way to specify which MSBuild version to use in the .Net Core - "Build" command pipeline task? Why is it not picking the correct version related to SDK?
I have tried specifying the exact SDK version in the "Use .Net Core"
task as well and specified Compatible Visual Studio
version as well.
I tried using below
yaml code
to runMS Build
with.net version 6.0.410
and the pipeline ran successfully like below:-YAML code:-
Output:-
global.json:-