Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when having a second AssemblyInformationalVersion attribute #78

Closed
KirillOsenkov opened this issue Oct 20, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@KirillOsenkov
Copy link

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

@KirillOsenkov KirillOsenkov added the bug Something isn't working label Oct 20, 2021
@kzu kzu closed this as completed in c86881a Oct 21, 2021
@kzu
Copy link
Member

kzu commented Oct 21, 2021

Thanks for reporting! 🙏

@devlooped devlooped locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants