You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RegisterWithDotnetSuggest should not remove "extension" on Linux #2316
When building a Linux executable with full assembly name as output file, this removes the last part of the final executable name.
For example, if the executable output is named "Full.Assembly.Name.Linux.Executable", then RegisterWithDotnetSuggest() registers "Full.Assembly.Name.Linux" and completions won't work.
But I suppose command-line tools are more commonly named using kebab-case than Dot.Delimited.Titlecase. Except there are versioned names like perl5.36.1.
Activity
KalleOlaviNiemitalo commentedon Jan 4, 2024
CliRootCommand.ExecutableName seems to have the same bug, even on the
mainbranch:command-line-api/src/System.CommandLine/CliRootCommand.cs
Lines 51 to 60 in a0782c8
Likewise SuggestionDispatcher.ShellPrefixesToMatch:
command-line-api/src/System.CommandLine.Suggest/SuggestionDispatcher.cs
Lines 185 to 189 in a0782c8
Especially as the extension may have already been deleted from Registration.ExecutablePath by GlobalToolsSuggestionRegistration:
command-line-api/src/System.CommandLine.Suggest/GlobalToolsSuggestionRegistration.cs
Lines 43 to 44 in a0782c8
But I suppose command-line tools are more commonly named using kebab-case than Dot.Delimited.Titlecase. Except there are versioned names like
perl5.36.1.KalleOlaviNiemitalo commentedon Jun 21, 2025
RegisterWithDotnetSuggest was deleted in 2.0.0-beta5 so this issue is no longer relevant.