Error 3 'CompareAttribute' is an ambiguous reference between 'System.ComponentModel.DataAnnotations.CompareAttribute' and 'System.Web.Mvc.CompareAttribute';Error 3;CompareAttribute is an ambiguous reference
Error 3 'CompareAttribute' is an ambiguous reference between 'System.ComponentModel.DataAnnotations.CompareAttribute' and 'System.Web.Mvc.CompareAttribute'
This happens when running VS 11 with mvc Beta 4 and .Net 4.5.
To make this work between .NET4 and .NET45 you need to add the below statement in those files to:
using CompareAttribute = System.Web.Mvc.CompareAttribute;
Error:
Error 3 'CompareAttribute' is an ambiguous reference between 'System.ComponentModel.DataAnnotations.CompareAttribute' and 'System.Web.Mvc.CompareAttribute'
Cause:
This happens when running VS 11 with mvc Beta 4 and .Net 4.5.
Solution:
To make this work between .NET4 and .NET45 you need to add the below statement in those files to:
using CompareAttribute = System.Web.Mvc.CompareAttribute;
This article was well-structured and helpful—thank you! Here’s another one you might find interesting Reaction Time Test. Reaction time tests are great for monitoring improvements in reaction speed, especially in sports training.
ReplyDelete