title: TFS Build Definition Dropdown Menu
body: <p>VS2012 TFS2012</p>
  
  <p>I followed <a href="http://blogs.msmvps.com/molausson/2014/06/30/how-to-add-an-enum-to-a-tfs-build-definition-2/" rel="nofollow">this</a> simple guide to create drop down menu in build definition. My goal is to have two drop downs, one with 20 selections and being able to select multiple options, second with 70 and pick only one.</p>
  
  <p>After adding more than two options to enum, selecting and deselecting doesn't work properly. For example:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace Workflow.ActivityHelpers
  {
  public enum Enums
      {
  
          Internal,
          Public,
          Failed,
          Another,
          YetAnother
      }
  }
  </code></pre>
  
  <p>I select Another and Internal deselects , and Public and Failed selects. With each click I get different combination of selected\unselected options.</p>
  
  <p>EDIT:
  Adding pictures
  Open DropDown 
  Only Internal2 is selected(TOO low rep to post more than 2 links)
  Clicked Another
  <a href="http://i.stack.imgur.com/5ksfH.png" rel="nofollow">link</a>
  Now 3 Are selected. </p>
  
  <p>Refer to other post for answer.</p>