title: How to ignore some files when generating test coverage with VSTest and reportgenerator tools on Azure pipelines
body: <p>I have a problem that I have failed to resolve.</p>
  <p>I have a .NET core project that I want to run tests and publish the test coverage on Azure Pipelines.</p>
  <p>The problem is: I'm using EF to generate Migrations files. I want to ignore these files from test
  but I can't.</p>
  <p>Anyone how to do add some arguments to the pipe-lines command to ignore these files? like <strong>--exclude</strong> <strong>Migrations/*.cs</strong></p>
  <p>Here is the job in my azure-pipelines.yaml</p>
  <pre><code>- job: Testing
    steps:
      - task: UseDotNet@2
        displayName: 'Use .Net Core sdk 3.1.x'
        inputs:
          version: 3.1.x
  
      - task: DotNetCoreCLI@2
        inputs:
          command: 'test'
          projects: '$(build.sourcesDirectory)/tests/*Tests/*.csproj'
          arguments: -c $(BuildConfiguration) --logger trx --collect:&quot;XPlat Code Coverage&quot; --settings:$(build.sourcesDirectory)/src/test.runsettings -- RunConfiguration.DisableAppDomain=true
        displayName: 'run tests'
  
      - task: DotNetCoreCLI@2
        inputs:
          command: custom
          custom: tool
          arguments: install --tool-path . dotnet-reportgenerator-globaltool
        displayName: Install ReportGenerator tool
  
      - script: ./reportgenerator -reports:$(Agent.TempDirectory)/**/coverage.cobertura.xml -targetdir:$(Build.SourcesDirectory)/coverlet/reports -reporttypes:&quot;Cobertura&quot;
        displayName: Create reports
             
      - task: PublishCodeCoverageResults@1
        displayName: 'Publish code coverage'
        inputs:
          codeCoverageTool: Cobertura
          summaryFileLocation: $(Build.SourcesDirectory)/coverlet/reports/Cobertura.xml
  </code></pre>