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. C# code builds all the time whether it is current or not

C# code builds all the time whether it is current or not

Scheduled Pinned Locked Moved C#
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.
  • A Offline
    A Offline
    Antony M Kancidrowski
    wrote on last edited by
    #1

    Using C# and the VS2005 IDE SP1 Whenever I run my C# projects through the IDE it always goes through the build process whether the code is current or not. Is this normal? Can it be turned off as it is a waste of time? Any help appreciated. Thanks in advance.

    Ant. I'm hard, yet soft.
    I'm coloured, yet clear.
    I'm fruity and sweet.
    I'm jelly, what am I? Muse on it further, I shall return!
    - David Walliams (Little Britain)

    M 1 Reply Last reply
    0
    • A Antony M Kancidrowski

      Using C# and the VS2005 IDE SP1 Whenever I run my C# projects through the IDE it always goes through the build process whether the code is current or not. Is this normal? Can it be turned off as it is a waste of time? Any help appreciated. Thanks in advance.

      Ant. I'm hard, yet soft.
      I'm coloured, yet clear.
      I'm fruity and sweet.
      I'm jelly, what am I? Muse on it further, I shall return!
      - David Walliams (Little Britain)

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      It may appear to be going through the build process all the time, but in fact it's actually just evaluating whether it needs to build anything. Unfortunately this seems to take just as long as just building the code would have done. You can tell the difference: if it actually builds anything, it will output the compiler command line. If not, it won't.

      Stability. What an interesting concept. -- Chris Maunder

      A 1 Reply Last reply
      0
      • M Mike Dimmick

        It may appear to be going through the build process all the time, but in fact it's actually just evaluating whether it needs to build anything. Unfortunately this seems to take just as long as just building the code would have done. You can tell the difference: if it actually builds anything, it will output the compiler command line. If not, it won't.

        Stability. What an interesting concept. -- Chris Maunder

        A Offline
        A Offline
        Antony M Kancidrowski
        wrote on last edited by
        #3

        It seem that is does not just evaluate. It goes through the post and pre build steps too as my tlb's are updated. I'll investigate a little further, thanks for your reply.

        Ant. I'm hard, yet soft.
        I'm coloured, yet clear.
        I'm fruity and sweet.
        I'm jelly, what am I? Muse on it further, I shall return!
        - David Walliams (Little Britain)

        D 1 Reply Last reply
        0
        • A Antony M Kancidrowski

          It seem that is does not just evaluate. It goes through the post and pre build steps too as my tlb's are updated. I'll investigate a little further, thanks for your reply.

          Ant. I'm hard, yet soft.
          I'm coloured, yet clear.
          I'm fruity and sweet.
          I'm jelly, what am I? Muse on it further, I shall return!
          - David Walliams (Little Britain)

          D Offline
          D Offline
          Daniel Grunwald
          wrote on last edited by
          #4

          The pre build step will always run. If the pre build step changes some source files/other input to the compiler, the project will be compiled again. For the post build step, there's an option if it should always run or only when the compiler updated the output file. Ensure your pre build step doesn't write to any files (does not modify the "last write time" of the files) if its input didn't change.

          A 1 Reply Last reply
          0
          • D Daniel Grunwald

            The pre build step will always run. If the pre build step changes some source files/other input to the compiler, the project will be compiled again. For the post build step, there's an option if it should always run or only when the compiler updated the output file. Ensure your pre build step doesn't write to any files (does not modify the "last write time" of the files) if its input didn't change.

            A Offline
            A Offline
            Antony M Kancidrowski
            wrote on last edited by
            #5

            Thanks for this. I have re-evaluated my pre-build activities and I have been able to move ones that would alter any files to run in post-build when the output has been changed. Many thanks again.

            Ant. I'm hard, yet soft.
            I'm coloured, yet clear.
            I'm fruity and sweet.
            I'm jelly, what am I? Muse on it further, I shall return!
            - David Walliams (Little Britain)

            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