is common code possible in vb.net ?
Tried a forum search ... no joy.
I have multiple applications and a handful of funcs and subs that I use in many of them and I want to put those in ONE module and have that module used by all of the apps at compile time. Problem is, when I do that, it just copies the "common" module to the app folder and any changes I make happen THERE, and do not propagate back to the actual common module. That is, I can START with a common module but it doesn't stay common, so it actually ISN'T common in any formal sense of the word.
Is there anything I can do ?
Thanks
Re: is common code possible in vb.net ?
Certainly:
Project -> Add Existing Item -> Add as Link (you have to click the button drop-down - a bad interface for sure).
Re: is common code possible in vb.net ?
I have a utility project that I include in all of my projects that does just what you're describing. It exists as a separate project and compiles down to its own DLL. Whenever I create a new project I just include the utility project as part of the solution. No special tricks. I'm using C# for all my work now but I know you can do exactly the same thing in VB.Net.
-Max
Re: is common code possible in vb.net ?
Quote:
Originally Posted by
David Anton
Certainly:
Project -> Add Existing Item -> Add as Link (you have to click the button drop-down - a bad interface for sure).
Excellent --- just what I was looking for. I really appreciate it.
Re: is common code possible in vb.net ?
Quote:
Originally Posted by
Max Peck
I have a utility project that I include in all of my projects that does just what you're describing. It exists as a separate project and compiles down to its own DLL. Whenever I create a new project I just include the utility project as part of the solution. No special tricks. I'm using C# for all my work now but I know you can do exactly the same thing in VB.Net.
-Max
Yeah, thanks for the suggestion, and that would have been my fall-back position but I like the "add as link" a lot better.
Re: is common code possible in vb.net ?
Quote:
Originally Posted by
phinds
Yeah, thanks for the suggestion, and that would have been my fall-back position but I like the "add as link" a lot better.
No problem. That does sound like it would work better in your situation (a module with functions in it). In my case I've got a number of different class modules in the utility project. Including the project let's me continue to develop them as I develop the project - the changes are immediately available in all other projects.
L8R! :-)