I am trying to have a global module I can use in several projects. I have created it but when I add it to a project as a new item it creates a completely new copy of the module instead of using the existing one. Have I missed something ?
Im actually trying to add a module to a project. In vb6 you could add an existing module to a number of projects and they all used the same copy of the module. Thats what Im trying to do, but vb.Net seems to create a new copy of the module for each project.
I would recommend the project references like Chrissie mentioned.
Make a single new class library project. Add all of your code/classes to it.
Open your other solutions, right click on the solution explorer, click Add -> existing project. Add the project that you created before. Right click on any other projects in your solution and select "Add References". Jump to the "Projects" tab and select the project that you just added.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.