## Describe the Bug AssemblyMetadata attributes whose keys include the `.` characte those generate into invalid constant names and produce compiler errors. <!-- A clear and concise description of what the bug is. --> ## Steps to Reproduce <!-- Tell us how to reproduce the issue. Ideally provide a failing unit test. --> ```c# [assembly: System.Reflection.AssemblyMetadata("A.B", "")] [assembly: System.Reflection.AssemblyMetadata("A.C", "")] ``` ## Expected Behavior Compilation to succeed. ## Version Info ThisAssembly 1.3.1 <!-- Main project version and other relevant dependencies you are using. --> ## Additional Info Discovered when using [Verify](https://github.com/VerifyTests/Verify) which generates a few such metadata attributes during build
Activity
kzu commentedon Aug 8, 2023
Consider sponsoring @devlooped to bump the priority of this.
Otherwise, we'd gladly take a PR!
dmirmilshteyn commentedon Sep 27, 2023
This problem also causes a failure when you include the sentry.io SDK, since that adds a
Senry.ProjectDirectoryAssemblyMetadata attribute.kzu commentedon Sep 27, 2023
Happy to take a PR 👌
Simplify and redesign ThisAssembly.Metadata as a special case of Cons…
Simplify and redesign ThisAssembly.Metadata as a special case of Cons…
Simplify and redesign ThisAssembly.Metadata as a special case of Cons…