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 stared 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.