Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReportGenerator task does not work on the project for .NET Framework . #494

Closed
norainu98 opened this issue Mar 6, 2022 · 5 comments
Closed
Labels

Comments

@norainu98
Copy link

Describe the bug

'....\tools\net47\ReportGenerator.MSBuild.dll' is set as 'ReportGeneratorAssembly' in a build\netstandard2.0\ReportGenerator.props.
However, above file does not exist in tools\net47 folder of the nupkg of v5.0.4.
As result, when target is .NET Framework. ReportGenerator command in the msbuild file does not wok.

To Reproduce

  1. Set a reference of ReportGenerator v5.0.4 into the msbuild project file with TargetFrameworks is net47 or net48.
  2. Set 'ReportGenerator' as msbuild task.
  3. Run msbuild and even if 'ReportGenerator' is called but it's not work because ReportGenerator.MSBuild.dll for .NET Framework does not exist.
@danielpalme danielpalme added the bug label Mar 6, 2022
@danielpalme
Copy link
Owner

You are right, this file is missing in the packages.
I guess there was a temporal problem with the GitHub action building the project.
The files got missing in v5 and now seem to be back again (without any changes in the build pipeline).

I plan to publish v5.1 within the next days, which will fix the problem.

@danielpalme
Copy link
Owner

I just released v5.1. Does this work for you?

@norainu98
Copy link
Author

Sorry, later.

ReportGenerator.MSBuild.dll exists in the %USERPROFILE%.nuget\packages\reportgenerator\5.1.1\tools\net47 folder.
However, version:4.8.13 works but version:5.1.1 does not work yet.

when call ReportGenerator Task of version:5.1.1, below error occurs.

Could not load file or assembly 'Microsoft.Extensions.Configuration, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. 
at Palmmedia.ReportGenerator.Core.Generator.GetConfiguration()
   at Palmmedia.ReportGenerator.Core.Generator.GenerateReport(IReportConfiguration reportConfiguration) in /_/src/ReportGenerator.Core/Generator.cs:line 44

ReportGenerator Task of version:4.8.13 works fine.
In this time, a difference between ver4.x and ver5.x on my project is just a only version string of the package reference.

danielpalme added a commit that referenced this issue Mar 15, 2022
@danielpalme
Copy link
Owner

It took some time, but I figured it out.
New version 5.1.2 should finally work again.

@norainu98
Copy link
Author

I confirmed to work 5.1.2 on my environment.
It worked by both net48 and net6.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants