datalust/clef-tool

Doesn't work when only .NET7.0 is installed

Closed this issue · 3 comments

When you only have dotnet 7.0 installed

❯ dotnet --list-sdks
7.0.101 [/usr/local/share/dotnet/sdk]

If you install DataLust.ClefTool

dotnet tool install --global datalust.cleftool

Running it fails as follows:

❯ clef -i 20230112.clef
You must install or update .NET to run this application.

App: /Users/tomaszcielecki/.dotnet/tools/clef
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (arm64)
.NET location: /usr/local/share/dotnet

The following frameworks were found:
  7.0.1 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=arm64&rid=osx.13-arm64

Thanks for the report! Looks like we can enable this by adding <RollForward>Major</RollForward> to the CSPROJ and re-publishing.

Thank you for the quick turnaround!

I can also confirm the latest version works perfectly!

Great, thanks for the confirmation! 👍