title: TeamCity + ReportGenerator
body: <p>Good morning guys</p>
  <p>I am using coverlet to run my tests in TeamCity. This works fine after I run the tests I would like to generate the report.</p>
  <pre><code>Write-Host &quot;Installing report generator&quot; -ForegroundColor Green -BackgroundColor White 
  
  dotnet tool install --tool-path tools dotnet-reportgenerator-globaltool
  
  Write-Host &quot;Finished installic report generator&quot; -ForegroundColor Green -BackgroundColor White 
  
  reportgenerator &quot;-reports:$filesString&quot; &quot;-targetDir:$targetDir&quot;
  </code></pre>
  <p>Above solution is working locally however in TeamCity I have following error:</p>
  <blockquote>
  <p>reportgenerator : The term 'reportgenerator' is not recognized as the
  name of  a cmdlet, function, script file, or operable program. Check
  the spelling of  the name, or if a path was included, verify that the
  path is correct and try  again.</p>
  </blockquote>
  <p>Any ideas what I am missing?</p>