Need help setting up Solution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ray Mitchell

    #1

    Need help setting up Solution

    Hello,

    I currently have a .dll assembly and 2 .exe assemblies that both use the
    ..dll assembly. I currently have the IDE set up as 3 separate projects. I
    must always first build the .dll assembly, then the other two. What I'd
    like to be able to do is to set it up so that they all work together, that
    is whenever I change something in either of the 3 whatever is necessary will
    be rebuilt in the correct order automagically. When I tried to do this by
    putting everything into one assembly it complained (as expected) that there
    were 2 Main entry points.

    Thanks,
    Ray Mitchell


  • Daniel O'Connell

    #2
    Re: Need help setting up Solution


    "Ray Mitchell" <RayMitchell@Me anOldTeacher.co m> wrote in message
    news:phtyb.2263 8$sb4.3816@news read2.news.pas. earthlink.net.. .[color=blue]
    > Hello,
    >
    > I currently have a .dll assembly and 2 .exe assemblies that both use the
    > .dll assembly. I currently have the IDE set up as 3 separate projects. I
    > must always first build the .dll assembly, then the other two. What I'd
    > like to be able to do is to set it up so that they all work together, that
    > is whenever I change something in either of the 3 whatever is necessary[/color]
    will[color=blue]
    > be rebuilt in the correct order automagically. When I tried to do this by
    > putting everything into one assembly it complained (as expected) that[/color]
    there[color=blue]
    > were 2 Main entry points.
    >[/color]
    Use project references (Add Reference, Projects tab) instead of hard
    references to the assembly. This will do what you want.[color=blue]
    > Thanks,
    > Ray Mitchell
    >
    >[/color]


    Comment

    • Ray Mitchell

      #3
      Re: Need help setting up Solution


      "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
      news:ej1qd64tDH A.3140@TK2MSFTN GP11.phx.gbl...[color=blue]
      >
      > "Ray Mitchell" <RayMitchell@Me anOldTeacher.co m> wrote in message
      > news:phtyb.2263 8$sb4.3816@news read2.news.pas. earthlink.net.. .[color=green]
      > > Hello,
      > >
      > > I currently have a .dll assembly and 2 .exe assemblies that both use the
      > > .dll assembly. I currently have the IDE set up as 3 separate projects.[/color][/color]
      I[color=blue][color=green]
      > > must always first build the .dll assembly, then the other two. What I'd
      > > like to be able to do is to set it up so that they all work together,[/color][/color]
      that[color=blue][color=green]
      > > is whenever I change something in either of the 3 whatever is necessary[/color]
      > will[color=green]
      > > be rebuilt in the correct order automagically. When I tried to do this[/color][/color]
      by[color=blue][color=green]
      > > putting everything into one assembly it complained (as expected) that[/color]
      > there[color=green]
      > > were 2 Main entry points.
      > >[/color]
      > Use project references (Add Reference, Projects tab) instead of hard
      > references to the assembly. This will do what you want.[color=green]
      > > Thanks,
      > > Ray Mitchell
      > >
      > >[/color]
      >
      >[/color]
      I think that's what I've done. I've added a reference to the common .dll
      created by the common project to the list of references for each of the
      other two projects that use that .dll. A I missing what you're telling me
      somehow? Thanks for your help.


      Comment

      • Daniel O'Connell

        #4
        Re: Need help setting up Solution


        "Ray Mitchell" <RayMitchell@Me anOldTeacher.co m> wrote in message
        news:hcxyb.2299 5$sb4.18011@new sread2.news.pas .earthlink.net. ..[color=blue]
        >
        > "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
        > news:ej1qd64tDH A.3140@TK2MSFTN GP11.phx.gbl...[color=green]
        > >
        > > "Ray Mitchell" <RayMitchell@Me anOldTeacher.co m> wrote in message
        > > news:phtyb.2263 8$sb4.3816@news read2.news.pas. earthlink.net.. .[color=darkred]
        > > > Hello,
        > > >
        > > > I currently have a .dll assembly and 2 .exe assemblies that both use[/color][/color][/color]
        the[color=blue][color=green][color=darkred]
        > > > .dll assembly. I currently have the IDE set up as 3 separate[/color][/color][/color]
        projects.[color=blue]
        > I[color=green][color=darkred]
        > > > must always first build the .dll assembly, then the other two. What[/color][/color][/color]
        I'd[color=blue][color=green][color=darkred]
        > > > like to be able to do is to set it up so that they all work together,[/color][/color]
        > that[color=green][color=darkred]
        > > > is whenever I change something in either of the 3 whatever is[/color][/color][/color]
        necessary[color=blue][color=green]
        > > will[color=darkred]
        > > > be rebuilt in the correct order automagically. When I tried to do[/color][/color][/color]
        this[color=blue]
        > by[color=green][color=darkred]
        > > > putting everything into one assembly it complained (as expected) that[/color]
        > > there[color=darkred]
        > > > were 2 Main entry points.
        > > >[/color]
        > > Use project references (Add Reference, Projects tab) instead of hard
        > > references to the assembly. This will do what you want.[color=darkred]
        > > > Thanks,
        > > > Ray Mitchell
        > > >
        > > >[/color]
        > >
        > >[/color]
        > I think that's what I've done. I've added a reference to the common .dll
        > created by the common project to the list of references for each of the
        > other two projects that use that .dll. A I missing what you're telling me
        > somehow? Thanks for your help.[/color]
        In vs.net, there are four types of references, .assembly file references,
        which reference assemblies on disk, COM references that referernce COM
        objects via interop assemblies, Web references that reference web services
        through similar proxy assemblies, and project references which are linked to
        a project, not a given file. By linking to a project in the current
        solution, visual studio adds a dependency and automatically builds all
        assemblies the assembly you are building is dependent upon, this is the
        effect you are after, correct?

        To achieve it, when you add the reference, you would use the Projects tab on
        the Add Reference dialog, not the .NET tab.[color=blue]
        >
        >[/color]


        Comment

        Working...