ThrowAddingDuplicateWithKeyArgumentException in ApplyPortingChanges
Closed this issue · 0 comments
ShanshanHe commented
Describe the bug
ApplyPortingChanges
does an aggregation on the RecommendedActions
across all projects being ported based on the package ID and generate a dictionary. When more than one project in a solution depend on a same package, the aggregation throws ThrowAddingDuplicateWithKeyArgumentException
due to duplicated key with the same package ID.
Expected behavior
No exception should be thrown and the porting should proceed.
Steps to Reproduce
Steps to reproduce the behavior:
- Have a sample solution with two projects reference the same package
- Try
ApplyPortingChanges
on the two projects ThrowAddingDuplicateWithKeyArgumentException
should be thrown
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information)
- OS: [e.g. Windows, macOS, Linux, etc]
- Version/Distro: [e.g. 11, Big Sur, Ubuntu 18.04]
Additional context
Add any other context about the problem here.