Skip to content

Assembly descriptions take up a lot of space #1800

Closed

Description

@MichalStrehovsky

In an app with a System.CommandLine reference, the following text:

This package includes a powerful command line parser and other tools for building command line applications, including:

    

    * Shell-agnostic support for command line completions

    * Method invocation and an extensible middleware pipeline

    * Constructor- and property-based model binding for complex types

    * Test and debug support

is repeated 28 times, taking up 14+ kB.

The text is embedded in the Win32 resource (UTF-16) and within a custom attribute reference (UTF-8) in each of the System.CommandLine assemblies (the main assembly itself, and 13 satellites assemblies.

My suggestion would be to replace this with a simple "System.CommandLine" string, same as libraries produced in the dotnet/runtime repo do.

Activity

  1. am11 commented on Jul 22, 2022

    @am11
    Member

    is repeated 28 times

    In spite of our workaround in runtime repo (using <SatelliteResourceLanguages>en-US), is this expected that assembly metadata is not de-duplicated for any given PackageReference?

  2. added
    bug
    on Sep 23, 2022
  3. KalleOlaviNiemitalo commented on May 2, 2023

    @KalleOlaviNiemitalo

    Related: dotnet/msbuild#8720 suggesting a warning about overlong AssemblyDescriptionAttribute or Win32 version resource.

    Place the long description in PackageDescription, and just a few words in Description. Surely, the description of an assembly should not start with "This package". NuGet pack and restore as MSBuild targets

    <Description>This package includes a powerful command line parser and other tools for building command line applications, including:
    * Shell-agnostic support for command line completions
    * Method invocation and an extensible middleware pipeline
    * Constructor- and property-based model binding for complex types
    * Test and debug support
    </Description>

    Besides, "Constructor- and property-based model binding for complex types" in that description seems out of date, as that feature is now in a separate package.

    <Description>This package provides command handler support for System.CommandLine performs parameter and model binding by matching option and argument names to parameter and property names.</Description>

  4. KalleOlaviNiemitalo commented on Sep 7, 2023

    @KalleOlaviNiemitalo

    The description of System.CommandLine was shortened in #2224, although one wouldn't guess from the summary of that PR.

    <Description>Support for parsing command lines, supporting both POSIX and Windows conventions and shell-agnostic command line completions.</Description>

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

    Area-Performancebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions