I have two thrid party facebook dlls using in my project, both having different purposes but having same name "facebook.dll". While adding reference i found conflicts with same name, so i changed the name of one dll to "facebookpost" and added its reference. I know its doesn't make any difference by simply changing the name of that dll. But i need to use these two dll in my project. how can i accomplish this?
i tried this following with no luck
<?xml version="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ClassLibrary1" publicKeyToken="fbc28d9ca2fc8db5" />
<publisherPolicy apply="no" />
<bindingRedirect oldVersion="1.0.0.0" newVersion="1.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Update : I have some how managed to get external reference to faceook.dll using "extern alias" But i am getting one error "The extern alias was not specified in a /reference option"
Update By following Orca's approach in The extern alias 'xxx' was not specified in a /reference option, i solved the "The extern alias was not specified in a /reference option" issue. But now ended with this new error - "Could not load file or assembly '[MyAliasName]' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference."