I have a c# project (lets name it A
) that references two projects (B
and C
) which themselves each reference different projects (B
=> D
and C
=> E
), but D
and E
contain types that are named exactly the same. This causes the following error
Severity Code Description Project File Line Suppression State Error CS0433 The type 'ITokenProviderService' exists in both 'interfaces.dotNet6, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' and 'interfaces.dotNetStandard, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' UploaderServiceApplication C:\UploaderServiceApplication\Worker.cs 100 Active
I have already tried aliasing as in Type exists in 2 assemblies but i seem to do it wrong since to use the alias in the root project A
it seems the project has to be referenced directly from A
which in my case somehow does not work.
Are there any suggestions to what i can do to fix this issue?