Query: How to get report generator reading arguments from .netconfig
See original GitHub issuedotnet reportgenerator does not appear to be reading arguments from .netconfig in current working directory. Instead it displays usage information in the console. What am I doing wrong?
Name of .netconfig file = .netconfig
Contents of .netconfig file
[ReportGenerator]
reports = "/Users/me/Development/Dotnet/CamFrontEnd/Tests/**/coverage.cobertura.xml"
targetdir = "/Users/me/Development/Dotnet/CamFrontEnd/CoverageReports"
reporttypes = HtmlSummary
assemblyfilters = -Minio;-WebApp.Testing.Utils;-WebApp.Testing.Mocks;-xunit.*;-WebApp.Blazor.UnitTests;-Bunit.*;-Humanizer
classfilters = -Cyotek.Collections.Generic.*
Output from dotnet reportgenerator
dotnet reportgenerator
2020-12-15T12:41:16: Arguments
ReportGenerator 4.8.1.0
Parameters:
["]-reports:<report>[;<report>][;<report>]["]
["]-targetdir:<target directory>["]
[["]-reporttypes:<Badges|Clover|Cobertura|...>[;<Badges|Clover|Cobertura|...>]["]]"
[["]-sourcedirs:<directory>[;<directory>][;<directory>]["]]
[["]-historydir:<history directory>["]]
[["]-plugins:<plugin>[;<plugin>][;<plugin>]["]]
[["]-assemblyfilters:<(+|-)filter>[;<(+|-)filter>][;<(+|-)filter>]["]]
[["]-classfilters:<(+|-)filter>[;<(+|-)filter>][;<(+|-)filter>]["]]
[["]-filefilters:<(+|-)filter>[;<(+|-)filter>][;<(+|-)filter>]["]]
[["]-verbosity:<Verbose|Info|Warning|Error|Off>["]]
[["]-title:<title>["]]
[["]-tag:<tag>["]]
Explanations:
Reports: The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
Target directory: The directory where the generated report should be saved.
Report types: The output formats and scope (separated by semicolon).
Values: Badges, Clover, Cobertura, CsvSummary, Html, HtmlChart, HtmlInline, HtmlInline_AzurePipelines, HtmlInline_AzurePipelines_Dark, HtmlSummary, JsonSummary, Latex, LatexSummary, lcov, MHtml, PngChart, SonarQube, TeamCitySummary, TextSummary, Xml, XmlSummary
Source directories: Optional directories which contain the corresponding source code (separated by semicolon).
The source directories are used if coverage report contains classes without path information.
Globbing is not supported.
History directory: Optional directory for storing persistent coverage information.
Can be used in future reports to show coverage evolution.
Plugins: Optional plugin files for custom reports or custom history storage (separated by semicolon).
Assembly filters: Optional list of assemblies that should be included or excluded in the report.
Class filters: Optional list of classes that should be included or excluded in the report.
File filters: Optional list of files that should be included or excluded in the report.
Exclusion filters take precedence over inclusion filters. Wildcards are allowed.
Verbosity: The verbosity level of the log messages.
Values: Verbose, Info, Warning, Error, Off
Title: Optional title.
Tag: Optional tag or build version.
Default values:
-reporttypes:Html
-assemblyfilters:+*
-classfilters:+*
-filefilters:+*
-verbosity:Info
Examples:
"-reports:coverage.xml" "-targetdir:C:\report"
"-reports:target\*\*.xml" "-targetdir:C:\report" -reporttypes:Latex;HtmlSummary -title:IntegrationTest -tag:v1.4.5
"-reports:coverage1.xml;coverage2.xml" "-targetdir:report" "-sourcedirs:C:\MyProject" -plugins:CustomReports.dll
"-reports:coverage.xml" "-targetdir:C:\report" "-assemblyfilters:+Included;-Excluded.*"
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
danielpalme/ReportGenerator
ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, NCover, Cobertura, JaCoCo, Clover, gcov or lcov into ...
Read more >Untitled
Dotnet reportgenerator reporttypes WebReportGenerator. ReportGenerator converts coverage reports generated by coverlet, OpenCover, dotCover, Visual Studio, ...
Read more >Untitled
Query : How to get report generator reading arguments from Tutorial: Install and use a .NET global tool - .NET CLI Web29 thg...
Read more >Generates reports for various code coverage tools 5.1.24
To install ReportGenerator (Portable) - Generates reports for various code coverage tools, run the following command from the command line or from ...
Read more >Associate a query parameter with a report parameter
In the Report Data pane, right-click the dataset, click Dataset Properties, and then click Parameters. Note · In the column Parameter Name, find...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Great that it works for you. I fixed the problem anyway. Release 4.8.2 should be available soon.
Thanks @danielpalme, appreciated 😃 will give it a try when available