Closed jhartmann123 closed 1 year ago
Situation: We have an extension method that cannot be found in the generated source, as the namespace of it does not get imported.
It looks like that namespaces do not get imported, if "children" of it are already present.
Tested with versions 2.3.0 and 3.0.0-beta.1
Repro: Projectables.ExtensionMethod.zip
Projectables.ExtensionMethod.Foo.ResultExtensions contains a [Projectable]-Method, which uses two extension methods:
Projectables.ExtensionMethod.Foo.ResultExtensions
[Projectable]
ConvertToTwo()
Projectables.ExtensionMethod
ConvertToThree()
Projectables.ExtensionMethod.Extensions
While Projectables.ExtensionMethod.Extensions does get imported in the generated source, Projectables.ExtensionMethod does not, resulting in the error
Situation:
We have an extension method that cannot be found in the generated source, as the namespace of it does not get imported.
It looks like that namespaces do not get imported, if "children" of it are already present.
Tested with versions 2.3.0 and 3.0.0-beta.1
Repro: Projectables.ExtensionMethod.zip
Projectables.ExtensionMethod.Foo.ResultExtensions
contains a[Projectable]
-Method, which uses two extension methods:ConvertToTwo()
is defined in the namespaceProjectables.ExtensionMethod
ConvertToThree()
is defined in the namespaceProjectables.ExtensionMethod.Extensions
While
Projectables.ExtensionMethod.Extensions
does get imported in the generated source,Projectables.ExtensionMethod
does not, resulting in the error