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

v4.3.0 fails without .net core 3 installed #286

Closed
pmeijer opened this issue Oct 1, 2019 · 3 comments
Closed

v4.3.0 fails without .net core 3 installed #286

pmeijer opened this issue Oct 1, 2019 · 3 comments

Comments

@pmeijer
Copy link

pmeijer commented Oct 1, 2019

Was using ReportGenerator without a specified version and got this error this morning:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '3.0.0' was not found.
  - Check application dependencies and target a framework version installed at:
      C:\Program Files\dotnet
  - Installing .NET Core prerequisites might help resolve this problem:
      https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download
  - The following versions are installed:
      2.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.1.13 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      2.2.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Fixating the version to the previous release, #tool nuget:?package=ReportGenerator&version=4.2.20, fixes my problem and I suspect the error is related to #205 (although I haven't performed any deeper investigation).

Thanks!

@danielpalme
Copy link
Owner

danielpalme commented Oct 1, 2019

The package contains several versions:

tools\net47\ReportGenerator.exe
tools\netcoreapp2.0\ReportGenerator.dll
tools\netcoreapp2.1\ReportGenerator.dll
tools\netcoreapp3.0\ReportGenerator.dll
tools\netcoreapp3.0\ReportGenerator.exe

If you use dotnet $(UserProfile)\.nuget\packages\reportgenerator\4.3.0\tools\netcoreapp2.0\ReportGenerator.dll you should be able to use ReportGenerator without .NET Core 3.0

It would be useful if you share the command that you trying to execute.
I currently don't understand why tools\netcoreapp3.0\ReportGenerator.dll gets executed.

@aaronasmith
Copy link

This caused my cake build scripts to start failing, but I guess that's my fault for not specifying a version.

@aaronasmith
Copy link

I don't think this is an issue with this repo. It appears to be how cake selects the executable when executing the report generator.

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

No branches or pull requests

3 participants