I am using Pure.DI 2.1.1 and I have a registration scheme with multiple roots exposed.
I pass IExternalDependency as an argument to the Composition constructor, and multiple types have a dependency on this IExternalDependency.
However, this configuration leads to invalid code being generated, and I see the following errors during the compilation phase:
Error CS0100: The parameter name 'externalDependency' is a duplicate
Error CS0102: The type 'Composition' already contains a definition for '_argM02D18di_externalDependency'
Description
I am using
Pure.DI 2.1.1
and I have a registration scheme with multiple roots exposed. I passIExternalDependency
as an argument to the Composition constructor, and multiple types have a dependency on thisIExternalDependency
. However, this configuration leads to invalid code being generated, and I see the following errors during the compilation phase:Example
Repository
tests/Pure.DI.UsageTests/Basics/ArgumentsScenario2.cs