Sometimes I've made a namespace in C# (I don't know if the problem is the same in VB.NET) containing 'System' and when I include it from a different DLL it goes crazy and conflicts with everything containing 'System'. This leads to crazy errors such as the following :
The type or namespace name 'ServiceModel' does not exist in the namespace 'RR.System'
The type or namespace name 'Runtime' does not exist in the namespace 'RR.System'
The type or namespace name 'SerializableAttribute' does not exist in the namespace 'RR.System'
If you don't know what I'm talking about then good for you :) I'm sure many have seen this issue.
I'm not completely sure why it does this. It will occur even in files, such as generated code for web services that doesn't contain any reference to RR.System
.
This all occurs just because I'm including RR.System
the DLL in a different project.
How can I avoid this happening? Or fix it?