Hi Nick,
Rather confusing question. But let's try anyways:
"I recently read that if you reference an assembly, say assembly A, then all public types referenced by assembly A must
also be referenced by you. Not sure if I worded it correctly". - No. When you reference an assembly, you gain
access to that assembly.
When you created the second EventStore class in EventSource.dll (bad idea to name them identical btw), you also inherited
the first eventsource from the second. When you then ran the application, nothing had changed in the .exe. The compiled .exe only changes when you perform a compile.
So, when you did do a compile, the compiler complained because you were referencing EventSource in eventsource.dll. Everything
is working OK in your system and has nothing to do with differences in compile time references versus runtime references.
Kind regards,
Tom de Koning
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".