title: How can I branch based on user input in MSBuild?
body: <p>How can I stop or continue a build, based on user input, using MSBuild?</p>
  
  <p>I currently have this in my project file:</p>
  
  <pre><code>&lt;Target Name="Afterbuild"&gt;
      &lt;MSBuild.ExtensionPack.UI.Dialog TaskAction="Confirm" Title="Production Deployment" Button1Text="Continue" Button2Text="Cancel" Text="WARNING !!! You are about to overwrite code on the prodution server. Please confirm!"&gt;
          &lt;Output TaskParameter="ButtonClickedText" PropertyName="Clicked"/&gt;            
      &lt;/MSBuild.ExtensionPack.UI.Dialog&gt;
  
      &lt;Message Text="User Clicked: $(Clicked)"/&gt;
      &lt;Message Text="User Typed: $(Typed)"/&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>I am unsure of how to proceed.</p>