Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Compiling the codes

Compiling the codes

Scheduled Pinned Locked Moved C#
questioncsharpvisual-studioannouncement
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Blubbo
    wrote on last edited by
    #1

    I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:

    exe -> 'a' -> 'c' -> 'd'
    -> 'b' ----^

    The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010

    L Richard Andrew x64R 2 Replies Last reply
    0
    • B Blubbo

      I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:

      exe -> 'a' -> 'c' -> 'd'
      -> 'b' ----^

      The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you right click on a project in the solution explorer, there's a menu item "Project Dependencies[^]". There you can set which projects a project depends on, and a right compilation order will be figured out based on that.

      B 2 Replies Last reply
      0
      • B Blubbo

        I am not sure if there is an easy way to compile the codes. I have created 1 exe and 4 dlls. The exe relies (depends) on 4 dlls ('a', 'b', 'c', 'd'). Illustration is as shown below:

        exe -> 'a' -> 'c' -> 'd'
        -> 'b' ----^

        The 'd' dll is the lowest level. The 'd' is referenced in 'c' dll. and so on. Also that 'a' and 'b' dlls are referenced in exe. Now when making changes in 'c' dll, I would compile the exe but the 'c' dll remains previous version, not updated when compiling the exe. I would have to compile each dlls ('a', and 'b') then the exe so that the updated 'c' dll is passed over to the exe. Now for the question is there the easy way to compile those dlls at once? Thanks! : Forgot to add that I'm using Visual Studio 2010

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        If you're using Visual Studio, you can configure the project dependencies. Right-click the solution file in Solution Explorer, and choose Properties. Then go to the "Project Dependencies" set of options. Set the dependencies so that a depends upon b, and b depends upon c, and so forth.

        The difficult we do right away... ...the impossible takes slightly longer.

        1 Reply Last reply
        0
        • L Lost User

          If you right click on a project in the solution explorer, there's a menu item "Project Dependencies[^]". There you can set which projects a project depends on, and a right compilation order will be figured out based on that.

          B Offline
          B Offline
          Blubbo
          wrote on last edited by
          #4

          Found it.. but not sure how to add items in project dependencies. The thing is that the those dlls are seperated (independent) in other folders... I think I need to put those dll projects in the exe project. Am I right?

          1 Reply Last reply
          0
          • L Lost User

            If you right click on a project in the solution explorer, there's a menu item "Project Dependencies[^]". There you can set which projects a project depends on, and a right compilation order will be figured out based on that.

            B Offline
            B Offline
            Blubbo
            wrote on last edited by
            #5

            Thanks! Now that the solution is much easier to work on and compiling! THANKS A HEAP!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups