Answered Detect use of command line when queue a build i Visual Studio

  • Thursday, December 09, 2010 10:49 AM
     
     

    Hi,

    If I queue a build in Visual Studio 2008 by right clicking my build definition and choose "Queue new build..." and then add a an argument in the textbox "MSBuild command-line arguments (optional)"

    Is it possible to detect in my project (TFSBuild.proj) that this build was started with a "extended" command line?

    (I would like to set a few of my own build properties to false if the build is started with a specific changeset (/p:SourceGetVersion=CXXX))

     

    BR Ulf

     

All Replies

  • Monday, April 30, 2012 6:45 PM
     
     Answered

    The best way to accomplish your goal would be to specify an additional property you create which signals that a custom command-line has been provided. It would not be easy (not sure if its even possible) to determine without providing the behavior yourself.

    Patrick

    • Marked As Answer by uljo2 Monday, October 15, 2012 12:28 PM
    •