'Visual studio error CS1503 at compile time passing an instance object from project A to project B
I'm writing a c# class on a Console project to test a public method from "Plugins" .dll. The public method requires an object instance (of type IMessageSenderProvider) from the "Sender" .dll.
I added the "Sender" .dll reference on the test project using alias, I instantiated the IMessageSenderProvider object and then I passed it to the "Plugins" .dll public method to test.
During compile time I'm facing the error
CS1503 "cannot convert from 'Sender.IMessageSenderProvider [C:\myPath\src\Sender\bin\Debug\Sender.dll]' to 'Sender.IMessageSenderProvider [C:\myPath\src\Plugins\bin\Debug\Plugins.dll]'
How can I fix the error?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
