Home All Groups Group Topic Archive Search About

Merging two VB.NET projects

Author
27 Oct 2006 12:12 AM
Daniel Manes
Working w/ someone in my company. We've both developed a project in
VB.NET, and now we want to merge them into a single project/solution so
they can communicate with each other. The communication is fairly
simple stuff (e.g., if user selects a row in a DataGridView in one
form, it selects a corresponding row in the other form).

I pretty much have the class written that will handle all the
communication, but what I'm not sure about is, what's the best way to
merge these babies? Just copy all the vb files and references into a
single project? Or create a single solution with two separate projects?
Or ... ?

Your advice much appreciated,

-Dan

Author
27 Oct 2006 12:26 AM
Bob Butler
"Daniel Manes" <danth***@cox.net> wrote in message
news:1161907979.170048.278740@h48g2000cwc.googlegroups.com
> Working w/ someone in my company. We've both developed a project in
> VB.NET,

Please remove m.p.vb.general.discussion from the cross-post as this has
nothing to do with VB 6 or earlier
Author
27 Oct 2006 12:28 AM
Jeff Johnson
"Daniel Manes" <danth***@cox.net> wrote in message
news:1161907979.170048.278740@h48g2000cwc.googlegroups.com...

>  We've both developed a project in VB.NET

Please do not crosspost between .NET and non-.NET groups. The *.vb.* groups
are for VB6 and ealier. The *.dotnet.* groups are for .NET.
Author
27 Oct 2006 2:15 AM
Tom Shelton
Daniel Manes wrote:
Show quoteHide quote
> Working w/ someone in my company. We've both developed a project in
> VB.NET, and now we want to merge them into a single project/solution so
> they can communicate with each other. The communication is fairly
> simple stuff (e.g., if user selects a row in a DataGridView in one
> form, it selects a corresponding row in the other form).
>
> I pretty much have the class written that will handle all the
> communication, but what I'm not sure about is, what's the best way to
> merge these babies? Just copy all the vb files and references into a
> single project? Or create a single solution with two separate projects?
> Or ... ?
>
> Your advice much appreciated,
>
> -Dan

I normally would create a solution with all the projects under it.

--
Tom Shelton
Author
27 Oct 2006 3:44 AM
Cor Ligthert [MVP]
Daniel,

In addidition to Tom be aware that one of those is a Form project (Exe) (as
that is the fact) and the others are Dynamic Link Libraries (DLL), you can
set that from any project in the project properties.

I hope this helps,

Cor

Show quoteHide quote
"Daniel Manes" <danth***@cox.net> schreef in bericht
news:1161907979.170048.278740@h48g2000cwc.googlegroups.com...
> Working w/ someone in my company. We've both developed a project in
> VB.NET, and now we want to merge them into a single project/solution so
> they can communicate with each other. The communication is fairly
> simple stuff (e.g., if user selects a row in a DataGridView in one
> form, it selects a corresponding row in the other form).
>
> I pretty much have the class written that will handle all the
> communication, but what I'm not sure about is, what's the best way to
> merge these babies? Just copy all the vb files and references into a
> single project? Or create a single solution with two separate projects?
> Or ... ?
>
> Your advice much appreciated,
>
> -Dan
>
Author
27 Oct 2006 6:43 PM
Daniel Manes
Cor Ligthert [MVP] wrote:

> In addidition to Tom be aware that one of those is a Form project (Exe) (as
> that is the fact) and the others are Dynamic Link Libraries (DLL), you can
> set that from any project in the project properties.

Thanks to everyone who answered...Looks like the two projects in one
solution is the way to go. Next question: *How* do I actually do this?

The only thing I can think of is to convert the smaller project into a
Class Library (DLL) then reference it in the larger project. Is that
what you have in mind? If yes, how do I convert a "Windows Application"
project into a "Class Library" project?

Many thanks,

-Dan
Author
28 Oct 2006 5:54 AM
Cor Ligthert [MVP]
Daniel,

Forgive me the word, yes it is Class Libary not Link Library.

For the rest it is the same as I wrote, just in the Project properties, you
see it almost direct.

Cor

Show quoteHide quote
"Daniel Manes" <danth***@cox.net> schreef in bericht
news:1161974600.128194.53380@i3g2000cwc.googlegroups.com...
> Cor Ligthert [MVP] wrote:
>
>> In addidition to Tom be aware that one of those is a Form project (Exe)
>> (as
>> that is the fact) and the others are Dynamic Link Libraries (DLL), you
>> can
>> set that from any project in the project properties.
>
> Thanks to everyone who answered...Looks like the two projects in one
> solution is the way to go. Next question: *How* do I actually do this?
>
> The only thing I can think of is to convert the smaller project into a
> Class Library (DLL) then reference it in the larger project. Is that
> what you have in mind? If yes, how do I convert a "Windows Application"
> project into a "Class Library" project?
>
> Many thanks,
>
> -Dan
>
Author
28 Oct 2006 5:57 AM
Cor Ligthert [MVP]
Daniel,

Maybe you cannot find it. The setting for Class Library is in the solution
exploirer after that you have Added your existing project to the other one
using the File menu,  in the solution explorer you can right click on it and
than it is easy to see. (It is a little bit different between the versions
2003 and 2005).

Cor


Show quoteHide quote
"Daniel Manes" <danth***@cox.net> schreef in bericht
news:1161974600.128194.53380@i3g2000cwc.googlegroups.com...
> Cor Ligthert [MVP] wrote:
>
>> In addidition to Tom be aware that one of those is a Form project (Exe)
>> (as
>> that is the fact) and the others are Dynamic Link Libraries (DLL), you
>> can
>> set that from any project in the project properties.
>
> Thanks to everyone who answered...Looks like the two projects in one
> solution is the way to go. Next question: *How* do I actually do this?
>
> The only thing I can think of is to convert the smaller project into a
> Class Library (DLL) then reference it in the larger project. Is that
> what you have in mind? If yes, how do I convert a "Windows Application"
> project into a "Class Library" project?
>
> Many thanks,
>
> -Dan
>
Author
27 Oct 2006 7:40 AM
Vibhu
Dan,
I would suggest you to create a single solution with two separate
projects!


Daniel Manes wrote:
Show quoteHide quote
> Working w/ someone in my company. We've both developed a project in
> VB.NET, and now we want to merge them into a single project/solution so
> they can communicate with each other. The communication is fairly
> simple stuff (e.g., if user selects a row in a DataGridView in one
> form, it selects a corresponding row in the other form).
>
> I pretty much have the class written that will handle all the
> communication, but what I'm not sure about is, what's the best way to
> merge these babies? Just copy all the vb files and references into a
> single project? Or create a single solution with two separate projects?
> Or ... ?
>
> Your advice much appreciated,
>
> -Dan
Author
27 Oct 2006 7:41 AM
Vibhu
Dan,
I would suggest you to create a single solution with two separate
projects!


Daniel Manes wrote:
Show quoteHide quote
> Working w/ someone in my company. We've both developed a project in
> VB.NET, and now we want to merge them into a single project/solution so
> they can communicate with each other. The communication is fairly
> simple stuff (e.g., if user selects a row in a DataGridView in one
> form, it selects a corresponding row in the other form).
>
> I pretty much have the class written that will handle all the
> communication, but what I'm not sure about is, what's the best way to
> merge these babies? Just copy all the vb files and references into a
> single project? Or create a single solution with two separate projects?
> Or ... ?
>
> Your advice much appreciated,
>
> -Dan
Author
27 Oct 2006 3:26 PM
mayayana
> Dan,
> I would suggest you to create a single solution with two separate
> projects!
>

  Well, as long as we're going to keep discussing
..Net to no purpose in a VB group....

Isn't that .Net nomenclature just too zany? :)
Only in the unique world of Microsoft could software
be a solution before it's solved a problem...
even before it's been written!
   In any other context the sentence above is
utterly nonsensical.
Author
27 Oct 2006 3:42 PM
Jeff Johnson
"mayayana" <mayaXXyan***@mindXXspring.com> wrote in message
news:Wyp0h.559$zf.221@newsread3.news.pas.earthlink.net...

> Isn't that .Net nomenclature just too zany? :)
> Only in the unique world of Microsoft could software
> be a solution before it's solved a problem...
> even before it's been written!

That's not .NET nomenclature; this existed in VS 6.0. We VB6 folks never saw
it, though, because our IDE wasn't integrated into the VS IDE.

Don't blame .NET for things that aren't its "fault."
Author
27 Oct 2006 3:58 PM
mayayana
>
> > Isn't that .Net nomenclature just too zany? :)
> > Only in the unique world of Microsoft could software
> > be a solution before it's solved a problem...
> > even before it's been written!
>
> That's not .NET nomenclature; this existed in VS 6.0. We VB6 folks never
saw
> it, though, because our IDE wasn't integrated into the VS IDE.
>
> Don't blame .NET for things that aren't its "fault."
>
  That's interesting. I never noticed the MS usage
of "solution" before .Net.  I don't see "solutions" in
VS6 - just projects and workspaces. But when I did a
search of MSDN I got an article from *1995* near the
top of the list, named:
   "Client/Server Solutions: The Design Process"
Author
27 Oct 2006 8:31 PM
Jeff Johnson
"mayayana" <mayaXXyan***@mindXXspring.com> wrote in message
news:u0q0h.13714$Lv3.12692@newsread1.news.pas.earthlink.net...

>  That's interesting. I never noticed the MS usage
> of "solution" before .Net.  I don't see "solutions" in
> VS6 - just projects and workspaces.

Ah, you're looking at a C++ project, I guess. ASP (InterDev) projects used
the "solution" terminology.
Author
27 Oct 2006 9:30 PM
Chris Dunaway
mayayana wrote:
Show quoteHide quote
> >
> > > Isn't that .Net nomenclature just too zany? :)
> > > Only in the unique world of Microsoft could software
> > > be a solution before it's solved a problem...
> > > even before it's been written!
> >
> > That's not .NET nomenclature; this existed in VS 6.0. We VB6 folks never
> saw
> > it, though, because our IDE wasn't integrated into the VS IDE.
> >
> > Don't blame .NET for things that aren't its "fault."
> >
>   That's interesting. I never noticed the MS usage
> of "solution" before .Net.  I don't see "solutions" in
> VS6 - just projects and workspaces. But when I did a
> search of MSDN I got an article from *1995* near the
> top of the list, named:
>    "Client/Server Solutions: The Design Process"

VB6 had the concept of a Project Group which allowed you load several
projects at once.  When you have a project open, you can select File ->
Add Project.    When you saved, you had a .vbg file with information to
load up both projects.  Although I don't recall if you could reference
one project from another.
Author
27 Oct 2006 7:03 PM
Daniel Manes
mayayana wrote:

>   Well, as long as we're going to keep discussing
> .Net to no purpose in a VB group....

Sorry to all the VB6 people for cross-posting my .NET question to your
group. I just sent my latest post with
microsoft.public.vb.general.discussion removed, so hopefully you will
be spared any further unwanted stuff (not counting this message :)).

> Only in the unique world of Microsoft could software
> be a solution before it's solved a problem...
> even before it's been written!

Maybe that's what Microsoft means when they claim to be "innovative" :)

-Dan