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

Publish updated dotnet-suggest NuGet package targeting .NET 8+ #2506

Open
ralish opened this issue Dec 11, 2024 · 2 comments
Open

Publish updated dotnet-suggest NuGet package targeting .NET 8+ #2506

ralish opened this issue Dec 11, 2024 · 2 comments

Comments

@ralish
Copy link

ralish commented Dec 11, 2024

The latest version of the dotnet-suggest package published to NuGet targets .NET 7.0: dotnet-suggest 1.1.415701.

That's problematic as it means the .NET 7.0 runtime, which is end of life since May 2024 and no longer receiving security updates, must be installed for the dotnet-suggest tool to function. Without the dotnet-suggest tool CLI applications using the System.CommandLine library cannot benefit from command-line completion.

@JoshStrauss
Copy link

Agree here! I also get the following error when opening up PowerShell.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

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

App: C:\Users\XXXXX\.dotnet\tools\dotnet-suggest.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  8.0.0-rc.2.23479.6 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  8.0.11 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  9.0.0-rc.2.24473.5 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  9.0.0 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=7.0.0&arch=x64&rid=win-x64&os=win10
Register-ArgumentCompleter : Cannot bind argument to parameter 'CommandName' because it is an empty array.
At C:\Users\XXXXXXXXXXXXXXXX\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:7 char:53
+ ... umentCompleter -Native -CommandName $availableToCompleteArray -Script ...
+                                         ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Register-ArgumentCompleter], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyArrayNotAllowed,System.Management.Automation.RegisterArgumentCompleterCommand

@KalleOlaviNiemitalo
Copy link

If you install with dotnet tool install --global --allow-roll-forward dotnet-suggest, then dotnet-suggest 1.1.415701 will run on .NET 8 or 9 too.

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

No branches or pull requests

3 participants