Merging two VB.NET projects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Daniel Manes

    #1

    Merging two VB.NET projects

    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

  • Jeff Johnson

    #2
    Re: Merging two VB.NET projects


    "Daniel Manes" <danthman@cox.n etwrote in message
    news:1161907979 .170048.278740@ h48g2000cwc.goo glegroups.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.


    Comment

    • Bob Butler

      #3
      Re: Merging two VB.NET projects

      "Daniel Manes" <danthman@cox.n etwrote in message
      news:1161907979 .170048.278740@ h48g2000cwc.goo glegroups.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


      Comment

      • Tom Shelton

        #4
        Re: Merging two VB.NET projects


        Daniel Manes wrote:
        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

        Comment

        • Cor Ligthert [MVP]

          #5
          Re: Merging two VB.NET projects

          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

          "Daniel Manes" <danthman@cox.n etschreef in bericht
          news:1161907979 .170048.278740@ h48g2000cwc.goo glegroups.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
          >

          Comment

          • Vibhu

            #6
            Re: Merging two VB.NET projects

            Dan,
            I would suggest you to create a single solution with two separate
            projects!


            Daniel Manes wrote:
            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

            Comment

            • Vibhu

              #7
              Re: Merging two VB.NET projects

              Dan,
              I would suggest you to create a single solution with two separate
              projects!


              Daniel Manes wrote:
              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

              Comment

              • mayayana

                #8
                Re: Merging two VB.NET projects

                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.


                Comment

                • Jeff Johnson

                  #9
                  Re: Merging two VB.NET projects

                  "mayayana" <mayaXXyana1a@m indXXspring.com wrote in message
                  news:Wyp0h.559$ zf.221@newsread 3.news.pas.eart hlink.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."


                  Comment

                  • mayayana

                    #10
                    Re: Merging two VB.NET projects

                    >
                    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"


                    Comment

                    • Daniel Manes

                      #11
                      Re: Merging two VB.NET projects

                      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...Look s 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

                      Comment

                      • Daniel Manes

                        #12
                        Re: Merging two VB.NET projects

                        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.publi c.vb.general.di scussion 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

                        Comment

                        • Jeff Johnson

                          #13
                          Re: Merging two VB.NET projects

                          "mayayana" <mayaXXyana1a@m indXXspring.com wrote in message
                          news:u0q0h.1371 4$Lv3.12692@new sread1.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.


                          Comment

                          • Chris Dunaway

                            #14
                            Re: Merging two VB.NET projects

                            mayayana wrote:
                            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.

                            Comment

                            • Cor Ligthert [MVP]

                              #15
                              Re: Merging two VB.NET projects

                              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

                              "Daniel Manes" <danthman@cox.n etschreef in bericht
                              news:1161974600 .128194.53380@i 3g2000cwc.googl egroups.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...Look s 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
                              >

                              Comment

                              Working...