Skip to content

Fails for assembly metadata containing . #247

Closed

Description

@Khitiara

Describe the Bug

AssemblyMetadata attributes whose keys include the . characte those generate into invalid constant names and produce compiler errors.

Steps to Reproduce

[assembly: System.Reflection.AssemblyMetadata("A.B", "")]
[assembly: System.Reflection.AssemblyMetadata("A.C", "")]

Expected Behavior

Compilation to succeed.

Version Info

ThisAssembly 1.3.1

Additional Info

Discovered when using Verify which generates a few such metadata attributes during build

Activity

  1. added
    bug
    on Jul 8, 2023
  2. added
    good first issue
    on Aug 8, 2023
  3. kzu commented on Aug 8, 2023

    @kzu
    Member

    Consider sponsoring @devlooped to bump the priority of this.

    Otherwise, we'd gladly take a PR!

  4. dmirmilshteyn commented on Sep 27, 2023

    @dmirmilshteyn

    This problem also causes a failure when you include the sentry.io SDK, since that adds a Senry.ProjectDirectory AssemblyMetadata attribute.

  5. kzu commented on Sep 27, 2023

    @kzu
    Member

    Happy to take a PR 👌

  6. added 2 commits that reference this issue on Jun 9, 2024
    11dc21e
    8465ba4
  7. added a commit that references this issue on Jun 17, 2024
    2442c61
  8. locked and limited conversation to collaborators on Sep 2, 2024
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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions