How can I resolve this? The unit type exists in two dll files
问题 I am currently going through a tutorial using Visual Studio 11 beta. When trying to set the max length of a field value in one of my classes: [MaxLength(50)] public string LastName { get; set; } It errors out and wont let me compile because the MaxLength() function exists in two places: Error 4 The type ' System.ComponentModel.DataAnnotations .MaxLengthAttribute' exists in both 'c:\Users\me\Documents\Visual Studio 11\ContosoUniversity\packages\EntityFramework.4.1.10331.0\lib\net40