Just upgrade the agent configuration to use a current visual studio version (2022)
https://zcusa.951200.xyz/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am encountering an issue while running my Azure DevOps pipeline using Microsoft-hosted agents. My .NET code is built using version 8.0.300, which requires MSBuild version 17.8.3 or higher. However, the available MSBuild version on the Microsoft-hosted agents is 16.11.2.50704, causing the pipeline to fail.
Below is the error message I am receiving:
Error: Version 8.0.300 of the .NET SDK requires at least version 17.8.3 of MSBuild. The current available version of MSBuild is 16.11.2.50704. Change the .NET SDK specified in global.json to an older version that requires the MSBuild version currently available.
I would like to continue using Microsoft-hosted agents for the pipeline and the latest .NET SDK. Could you please suggest how to address this issue? Are there any workarounds or updates to the hosted agent images that include the required MSBuild version?
Just upgrade the agent configuration to use a current visual studio version (2022)
https://zcusa.951200.xyz/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml