Skip to content

Exception when having a second AssemblyInformationalVersion attribute #78

@KirillOsenkov

Description

@KirillOsenkov

Describe the Bug

Exception in the generator when the user manually types in an attribute in their code:

.ToDictionary(x => x.Key, x => x.Value ?? "");

Steps to Reproduce

Type [assembly: AssemblyInformationalVersion("1.0.0")] in source

Expected Behavior

Generator should be able to deal with duplicates

Exception with Stack Trace

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

Version Info

1.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions