diff --git a/docs/pipelines/ecosystems/dotnet-core.md b/docs/pipelines/ecosystems/dotnet-core.md index 4f5c0fa927f..18296e98349 100644 --- a/docs/pipelines/ecosystems/dotnet-core.md +++ b/docs/pipelines/ecosystems/dotnet-core.md @@ -674,6 +674,17 @@ To run tests and publish code coverage with Coverlet: 1. Add the following snippet to your *azure-pipelines.yml* file. Don't add extra `DataCollectionRunSettings` arguments because the `XPlat Code Coverage` collector already produces a Cobertura report. ```yaml + - task: UseDotNet@2 + inputs: + version: '8.x' + includePreviewVersions: true # Required for preview versions + + - task: DotNetCoreCLI@2 + displayName: 'dotnet build' + inputs: + command: 'build' + arguments: '--configuration $(buildConfiguration)' + - task: DotNetCoreCLI@2 displayName: 'dotnet test' inputs: