Let's say I work in a namespace called, for example, Org.Company , and that this namespace contains MyClass . I also import nuget with a namespace named Company with a class called OtherClass .
So, when I work inside my Org.Company namespace, I cannot do the following:
Company.OtherClass obj;
because the compiler assumes that I actually mean:
Org.Company.Otherclass obj
which does not exist.
So, as far as I know, instead of using the full name, I really MUST import another namespace as such using Company;
The problem is that I need to reference this OtherClass from the XML file (Castle Windsor configuration file), and the full name of Company.OtherClass does not work. Is there any way around this? Changing namespace names is not a viable option.
EDIT: This is what I have in the Castle Windsor xml file
<using assembly="MyProj, Version=1.0.0.0, Culture=neutral" /> ... <component service="Company.IOtherClass" type="Company.OtherClass" />
I get the following error:
{"Could not convert string 'Company.OtherClass' to a type. Make sure assembly containing the type has been loaded into the process, or consider specifying assembly qualified name of the type."}
Perhaps because instead he searches inside the Org.Company defined in the MyProj assembly.
I suppose this can be fixed if there is a way to add another <using /> statement that references the Nuget package ... Is there a way to do this?