I have a build pipeline in Azure DevOps which has the following tasks and uses a hosted agent.
Now, when I run it the Test task fails with the following message.
Testhost process exited with error: It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found.
How can I install version 2.2.0 in the hosted agent?