tfs 2008, set environment variable for multiple processes RRS feed

  • Question

  • In our curent build process we set an environment variable and then use this variable in our WIX projects.  This has worked fine for a couple of years.
    We now have a tfs 2008 build where we set maxcpucount:2 and BuildInParallel=True and the error we get is unknown environment variable. This is of course because when team build starts, it opens 2 processes and we only set the env.Var in one process.
    Is there a way to set the env.var in both processes? 
    Or is it possible to have a build type set the env.var(machine or user level) in the tfsbuild.proj and have this tfsbuild.proj call another.proj where another.proj uses maxcpucount:2 and where all the files are built in another.proj?
    If so, where is some documentation on how to have one proj call another proj?

    Friday, February 20, 2009 9:29 PM


  • To call another .proj file from your initial MSBuild file, you can use the MSBuild task that ships as part of the .Net Framework. You won't need a UsingTask entry to use it.

    - Steve
    Development Process Consultant - Notion Solutions - http://sstjean.blogspot.com
    • Marked as answer by Hua Chen Friday, February 27, 2009 2:41 AM
    Sunday, February 22, 2009 7:52 PM