So here is my problem.
So when I try to build, I get the error
The type 'Castle.Core.Interceptor.IInterceptor' exists in both 'c:...\Libraries\Rhino.Mocks.dll' and 'c:...\Libraries\Castle.Core.dll'
How then do I specify that I want to use the IInterceptor instance from the Castle.Core.dll rather than the one included in Rhino Mocks?
In the Project Designer, click the References tab. Click the Add button to open the Add Reference dialog box. In the Add Reference dialog box, select the tab indicating the type of component you want to reference. Select the components you want to reference, and then click OK.
Right click the website/web application property and set Assembly name field with the intended name. Eg: If the application is named as XYZ and uses namespace naming as companyname. dept. XYZ then the application may have 2 separate dlls.
A . Net Namespace provides the fundamental unit of logical code grouping while an assembly provides a fundamental unit of physical code grouping. Namespaces is a logical group of related classes that can be used by any other language targeting the Microsoft .
Let's throw the specific answer up here in case someone comes along later. From article here.
extern alias CastleCore;
CastleCore::Castle.Core.Interceptors.IInterceptor
. Or in my case I simply did:using cci = CastleCore::Castle.Core.Interceptors;
and can now reference
cci.IInterceptor
You can use an extern alias
to alias one of the assemblies to prevent the ambiguity.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With