Sharing a module (containing classes) between projects
-
I have 2 class libraries and a Windows Application that use a common set of of structures and classes to pass and manipulate data. Each is written in VB.NET. My thinking was to create a public module, shared through Source Safe so a GetLatest would at least update all projects before a build. Now, many of the public and private methods within each class library pass data types that include some of these "shared" structures and classes. I was planning on simply including that public module in each of these projects so the type information would be common knowledge. However, it doesn't work... the compiler says (for instance in the Windows application) that the type should be ClassLibrary1.modPublicStructures.clsMyClass and not MyWindowsApp.modPublicStructures.clsMyClass. Now, I KNOW I can simply create yet another class library that contains this set of common classes and then add a reference to that new class library to each of these projects... but that's now ANOTHER DLL added to the project. Surely there's another way to accomplish this. ???