You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched issues to ensure it has not already been reported
Cake runner
Cake Frosting
Cake version
2.1
Operating system
macOS
Operating system architecture
64-Bit
CI Server
local
What are you seeing?
when I try to use ReportGenerator from cake I receive
Error: An error occurred trying to start process '/build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/netcoreapp3.1/any/ReportGenerator.exe' with working directory '/build'. Exec format error
What is expected?
when I checked by manual command
'''
dotnet ./build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/net6.0/any/ReportGenerator.dll "-reports:" "-targetdir:" "-reporttypes:Cobertura"
'''
all works - so after first investigation it seems that this is the line responsible for probems
will it be possible to launch report generator by dotnet /ReportGenerator.dll instead?
it would make report generator cross platform
Could you please advise?
Steps to Reproduce
any usage of context.ReportGenerator
for example. (where unitReport path is root folder for subfolders with xunit reports)
var reportGeneratorSettings = new ReportGeneratorSettings
{
ReportTypes = new[] { ReportGeneratorReportType.Cobertura },
};
context.ReportGenerator(
new GlobPattern($"{unitReportPath.FullPath}/**/coverage.cobertura.xml"),
unitReportPath,
reportGeneratorSettings);
Output log
Error: An error occurred trying to start process '/build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/netcoreapp3.1/any/ReportGenerator.exe' with working directory '/build'. Exec format error
The text was updated successfully, but these errors were encountered:
@AdaskoTheBeAsT can you confirm how you are installing the tool? Are you using the Cake pre-processor directive to do this, or is this being done elsewhere?
Prerequisites
Cake runner
Cake Frosting
Cake version
2.1
Operating system
macOS
Operating system architecture
64-Bit
CI Server
local
What are you seeing?
when I try to use ReportGenerator from cake I receive
Error: An error occurred trying to start process '/build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/netcoreapp3.1/any/ReportGenerator.exe' with working directory '/build'. Exec format error
What is expected?
when I checked by manual command
'''
dotnet ./build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/net6.0/any/ReportGenerator.dll "-reports:" "-targetdir:" "-reporttypes:Cobertura"
'''
all works - so after first investigation it seems that this is the line responsible for probems
cake/src/Cake.Common/Tools/ReportGenerator/ReportGeneratorRunner.cs
Line 129 in 48baa8a
will it be possible to launch report generator by dotnet /ReportGenerator.dll instead?
it would make report generator cross platform
Could you please advise?
Steps to Reproduce
any usage of context.ReportGenerator
for example. (where unitReport path is root folder for subfolders with xunit reports)
Output log
Error: An error occurred trying to start process '/build/tools/dotnet-reportgenerator-globaltool.5.1.4/tools/netcoreapp3.1/any/ReportGenerator.exe' with working directory '/build'. Exec format error
The text was updated successfully, but these errors were encountered: