Code52 / aspnet-internationalization

NuGet packages to make i18n easy for developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CompareAttribute in Models is an ambiguous reference.

ignaciofuentes opened this issue · comments

The Compare Attribute that the ConfirmPassword property has (in both ChangePasswordModel and RegisterModel) fires a compile error:

'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.
Changing it .Net 4.0 "fixes it"

Apologies for missing this one. Now that MVC4 and .NET 4.5 are finalised I'll confirm this is not occurring.

Still an issue in samples

To make this work between .NET4 and .NET45 you need to change your two using statements in those files to:

using System.ComponentModel.DataAnnotations;
using CompareAttribute = System.Web.Mvc.CompareAttribute;

Just pushed 0.2.6 to NuGet which fixes this specific issue but I've got more things I need to resolve still