I have a two-build WPF application.
Build A is a wpf application.
Build B is an open-source 3D application mainly used by A.
Assembly A refers to assembly B.
Now that the event is fired on assembly B, I need to call the method in assembly A in the application of the static class.
If I try to add a reference to assembly A to B, I get an error:
Adding this project will cause a circular dependency
Do you have any ideas on how to solve it?
In particular, I would like to know:
- How to call
App.myMethod()in from assembly B? - To separate classes, can I fire a common event on assembly B and catch it on assembly A?
- Any other ideas are welcome.