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

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

  • Donnerstag, 9. Dezember 2010 10:49
     
     

    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

     

Alle Antworten

  • Montag, 30. April 2012 18:45
     
     Beantwortet

    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

    • Als Antwort markiert uljo2 Montag, 15. Oktober 2012 12:28
    •