Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Sharing a module (containing classes) between projects

Sharing a module (containing classes) between projects

Scheduled Pinned Locked Moved Visual Basic
csharpquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Philmon
    wrote on last edited by
    #1

    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. ???

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups