LordMike / MBW.Tools.CsProjFormatter

Dotnet global tool to format CSProj files, sorting dependencies and indenting elements
MIT License
3 stars 0 forks source link

Depends on obsolete .NET 2.2.0 #6

Open warappa opened 3 months ago

warappa commented 3 months ago

When running on a PC with current a installation of .NET (.NET 8), the following error occurs:

You must install or update .NET to run this application.

App: C:\Users\<user>\.dotnet\tools\csproj-format.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '2.2.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  2.1.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  3.1.23 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  3.1.29 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  3.1.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  3.1.32 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  5.0.17 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.10 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.12 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.15 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.30 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  6.0.32 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  7.0.19 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  7.0.20 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  8.0.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  8.0.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  8.0.7 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.2.0&arch=x64&rid=win-x64&os=win10

I had to install .NET 2.2.0 as stated in the last line. Then it worked.

Can you update and release a new version compatible with .NET 8? Or even making it self-contained with maybe even AOT for size reduction?

Thank you for your project!

Info

Version: 0.1.0

warappa commented 3 months ago

I just saw, that you have updated packages in this project's NuGet feed. I'm not familiar on how to consume this packages. But would it be possible to upload the latest alpha version to NuGet?