TFS Team Build eventually calls MSBuild to perform the build. Local VS eventually calls MSBuild to perform the build.
You'll want to determine whether there are TFS specific properties that are passed to the solution to build (and thus are available in the .wixproj). You'll then want to update the .wixproj in question to pass that value as a preprocessor constant (DefineConstants) or use the value in some way to define a preprocessor constant that you can use in the .wxi. Perhaps your problem could be solved by using project references. http://wix.sourceforge.net/manual-wix3/votive_project_references.htm I find $(var.ProjectName.ProjectDir), $(var.ProjectName.TargetDir), and $(var.ProjectName.SolutionDir) particularly useful. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail > -----Original Message----- > From: Prabhat Nath [mailto:prabhat.n...@gmail.com] > Sent: Wednesday, August 17, 2011 11:48 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] WiX Project Local VS Build vs TFS 2010 Build > > Hello, > > > > I have a WiX Project that has a .wxi file with all variables, where one of the > variable is the “SourcePath” for all files that are included in MSI. > > Is there a way I can check if the build/compile is done from Local VS or from > TFS Team Build, so that I can set the path of above variable accordingly? > > > > Thanks, > Prabhat Nath > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user > administration capabilities and model configuration. Take the hassle out of > deploying and managing Subversion and the tools developers use with it. > http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users