Skip to content

Member Visibility to Support System.CommandLine.NamingConventionBinder post-Beta5 #2600

Closed

Description

@eajhnsn1

To support the ability to fork and maintain our own System.CommandLine.NamingConventionBuilder and System.CommandLine.Hosting (as suggested in #2576 ), some types and members in System.CommandLine need to be made public.

Prior to the NamingConventionBinder project's removal, System.CommandLine was using InternalsVisibleTo to expose the following internals to System.CommandLine.NamingConventionBinder:

SymbolResult.SymbolResultTree
ArgumentResult constructor
ArgumentConverter
ArgumentConversionResult
ArgumentConversionResultType

Activity

  1. jonsequitur commented on Jun 25, 2025

    @jonsequitur
    Contributor

    We should look at whether the code in those projects can be refactored to work on top of the public surface area of System.CommandLine. The InternalsVisibleTo shortcut was done in order to separate these projects while they were in the same repo, but keeping it in place for projects in separate repos will lead to issues.

  2. added this to the Triage milestone on Sep 16, 2025
  3. jeffhandley commented on Sep 16, 2025

    @jeffhandley
    Member

    We are not going to change the visibility of those APIs at this time; we do expect the functionality can be achieved with the current public API surface. Closing this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions