I created an Azure Function v2 (.NET Core) and added a Core Class library that includes Unit Tests using xUnit. I then created a Build pipeline in Azure DevOps with the tasks Visual Studio build and Visual Studio Test.
But I repeatedly fail to build successfully respectively to have the Unit tests running successfully in the pipeline. Locally everything works fine.
What do I have to do to get the Function App build and unit tested successfully in the Azure DevOps Build pipeline?