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. Web Development
  3. ASP.NET
  4. TFS BuildDefinition - Environment based dlls

TFS BuildDefinition - Environment based dlls

Scheduled Pinned Locked Moved ASP.NET
questionhelpworkspace
4 Posts 2 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.
  • S Offline
    S Offline
    student_rhr
    wrote on last edited by
    #1

    Hi, How can I configure my TFS build to pick up dlls based on the build environment. For instance my directory structure is like this: Source |______ build |______ environment |______ LIB |_____________ DEV |_____________ LOCAL |_____________ PROD |_____________ UAT |______ src |_____________ net |___________________ myProjectDirectory |______ mySolutionFile.sln What we are needing to do is to create a build for DEV, UAT and PROD environment. We have some 3rd party dlls which reside in lib > DEV, lib > UAT, and lib > PROD. So essentially for DEV build we need to pick the dll from the lib > DEV directory, UAT build we need the dll from lib > UAT directory .. so on .. you get the idea. Can this be accomplished? I know I havent been able to find a way to do it using Build Definition Wizard. I would appreciate your help.

    T 1 Reply Last reply
    0
    • S student_rhr

      Hi, How can I configure my TFS build to pick up dlls based on the build environment. For instance my directory structure is like this: Source |______ build |______ environment |______ LIB |_____________ DEV |_____________ LOCAL |_____________ PROD |_____________ UAT |______ src |_____________ net |___________________ myProjectDirectory |______ mySolutionFile.sln What we are needing to do is to create a build for DEV, UAT and PROD environment. We have some 3rd party dlls which reside in lib > DEV, lib > UAT, and lib > PROD. So essentially for DEV build we need to pick the dll from the lib > DEV directory, UAT build we need the dll from lib > UAT directory .. so on .. you get the idea. Can this be accomplished? I know I havent been able to find a way to do it using Build Definition Wizard. I would appreciate your help.

      T Offline
      T Offline
      The Man from U N C L E
      wrote on last edited by
      #2

      What we have done is to add 3rd party dlls to source control, in your case put the entire LIB folder into source control. Having doe this use relative paths in the references so that when the build server gets the latest code it also gets the matching dlls in the same relative paths.

      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

      S 1 Reply Last reply
      0
      • T The Man from U N C L E

        What we have done is to add 3rd party dlls to source control, in your case put the entire LIB folder into source control. Having doe this use relative paths in the references so that when the build server gets the latest code it also gets the matching dlls in the same relative paths.

        If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

        S Offline
        S Offline
        student_rhr
        wrote on last edited by
        #3

        Thanks for answering. Above mentioned is actually the source control folder structure. Perhaps I do not understand the relative path technique, meaning I am not sure if you are referring to relative paths in the Build definitions file of if you are talking about ASP.NET references. Would you mind elaborating it a bit? Thanks again for your help.

        T 1 Reply Last reply
        0
        • S student_rhr

          Thanks for answering. Above mentioned is actually the source control folder structure. Perhaps I do not understand the relative path technique, meaning I am not sure if you are referring to relative paths in the Build definitions file of if you are talking about ASP.NET references. Would you mind elaborating it a bit? Thanks again for your help.

          T Offline
          T Offline
          The Man from U N C L E
          wrote on last edited by
          #4

          Our Team build builds windows forms, web services and web applications that make up our product in one swoop. The team build just says get the entire folder structure from source control then build the specified solutions. Each solution/project then uses relative paths to any referenced dlls. By default all paths are relative if they are on the same drive. The team build does not need to specify the references as the project does that.

          If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

          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