title: System.ComponentModel.DescriptionAttribute in portable class library
body: <p>I am using the Description attribute in my enums to provide a user friendly name to an enum field. e.g.</p>
  
  <pre><code>public enum InstallationType
  {
      [Description("Forward of Bulk Head")]
      FORWARD = 0,
  
      [Description("Rear of Bulk Head")]
      REAR = 1,
  
      [Description("Roof Mounted")]
      ROOF = 2,
  }
  </code></pre>
  
  <p>And accessing this is easy with a nice helper method:</p>
  
  <pre><code>public static string GetDescriptionFromEnumValue(Enum value)
      {
          DescriptionAttribute attribute = value.GetType()
              .GetField(value.ToString())
              .GetCustomAttributes(typeof(DescriptionAttribute), false)
              .SingleOrDefault() as DescriptionAttribute;
          return attribute == null ? value.ToString() : attribute.Description;
      }
  </code></pre>
  
  <p>I need to convert this into a portable class library but it doesn't seem to have access to the System.ComponentModel library. when I try add a reverence VS tells me that I have referenced everything already.</p>
  
  <p>Thanks</p>