title: The type 'MaxLengthAttribute' exists in both 'EntityFramework, and 'System.ComponentModel.DataAnnotations
body: <p>I am doing some spring cleaning on a legacy Web Api 2 project (target 4.5).  As part of the the nuget updates, I moved Microsoft.AspNet.WebApi.HelpPage from version 5.0.0 to 5.2.3.  Once I do that, I am getting the following message:</p>
  
  <blockquote>
    <p>Error CS0433  The type 'MaxLengthAttribute' exists in both
    'EntityFramework, Version=6.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089' and
    'System.ComponentModel.DataAnnotations, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=31bf3856ad364e35'</p>
  </blockquote>
  
  <p>It looks like this was a problem a while back when they moved that class from EF to DataAnnotations and the solution was to upgrade EF.  Since I have the most recent stable version of EF (5.2.3), I am not sure what else to do.  I tried removing System.ComponentModel.DataAnnotations from the using statements, but then it doesn't pick up the EF MaxLengthAttribute.  Cleaning and rebuilding the solution also does not work.</p>
  
  <p>Any pointers are appreciated.</p>