ThisAssembly
ThisAssembly copied to clipboard
Fails for assembly metadata containing `.`
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
This problem also causes a failure when you include the sentry.io SDK, since that adds a Senry.ProjectDirectory
AssemblyMetadata attribute.
Happy to take a PR 👌