Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27196

Why is this a Circular Dependency

$
0
0
I have three projects in my solution. Lets say one is called "WindowsApplication1", and one is called "Messenger" and the third "ClassProject". I need WindowsApplication1 to be able to use methods from ClassProject. In order to have ClassProject be able to interact with future projects, i have the only project referencing it as Messenger, where every project is referencing Messenger, and ClassProject is referencing every project but Messenger. The projects can call a method from messenger, which will call the method from ClassProject. However, Visual Studio says this is a circular dependency. I am trying to do this, because two projects cannot reference each other, and I find this extremely ridiculous. Is there any way around this? I can see Global Events working, but that just seems overly complicated for a task like, showing a form in some other project.

Viewing all articles
Browse latest Browse all 27196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>