Accessing a shared class from another assembly

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

I have two seperate assemblies, my Main project which contains a static
class called MainProject.FormManager and a second assembly called
CustomControls.

Is there anyway to reference the MainProject assembly FormManager static
class from the CustomControls class?

The Static class is public, and what I really need to be able to do is read
the values for the public properties from the MainProject assembly
FormManager static class.

Thank you,
RSH
 
The IDE doesn't support circular references - which means that if you Main
project references the CustomControls library, then no: the CustomControls
library can't also reference Main.

Four options:
* move FormManager into the controls library
* create a third library for FormManager that both CustomControls and Main
reference
* merge the Main and CustomControls projects
* abuse the command line the force a circular reference (/really/ not worth
it)

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top