diff --git a/build/stage-build.yml b/build/stage-build.yml index 68ecdf0..4c31128 100644 --- a/build/stage-build.yml +++ b/build/stage-build.yml @@ -74,7 +74,7 @@ steps: projects: $(Build.SourcesDirectory)/$(SolutionFileName) workingDirectory: $(Build.SourcesDirectory) publishTestResults: false - arguments: '/p:configuration $(ApplicationConfiguration) /p:CollectCoverage true /p:CoverletOutputFormat cobertura /p:CoverletOutput $(Build.SourcesDirectory)/coverage /p:ExcludeByFile "**/*.g.cs" --logger trx --results-directory $(Build.SourcesDirectory)/coverage --no-build' + arguments: '--configuration $(ApplicationConfiguration) --CollectCoverage true --CoverletOutputFormat cobertura --CoverletOutput $(Build.SourcesDirectory)/coverage --ExcludeByFile "**/*.g.cs" --logger trx --results-directory $(Build.SourcesDirectory)/coverage --no-build' - task: PublishTestResults@2 displayName: 'Publish test results' @@ -88,7 +88,7 @@ steps: condition: and(succeededOrFailed(), eq(variables['ApplicationPlatform'], 'NuGet')) inputs: codeCoverageTool: 'Cobertura' - summaryFileLocation: "$(Build.SourcesDirectory)/coverage.cobertura.xml" + summaryFileLocation: "$(Agent.TempDirectory)/*/coverage.cobertura.xml" - task: PublishBuildArtifacts@1 displayName: 'Publish artifact $(ApplicationConfiguration)'