'How to add .Net 3.5.1 as a prerequisite in an Azure Devop YAML?

We currently have a .Net solution being built on our custom agents. I just had to install a new agent and we noticed that the build was failing, because 2 of our tools were requesting it.

Is there a way to force the installation of .Net 3.5.1 inside the YAML?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source