Windows Server 2012 RC가 설치된 서버에 Teamcity에 MVC 프로젝트를 빌드하려고합니다.TeamCity (Windows Server 2012 RC)에서 빌드 할 때 CompareAttribute를 찾을 수 없습니다.
아래 오류가 나타납니다. MVC 버전과 충돌하는 것처럼 보입니다. 내가 인터넷 검색을 할 때 발견되면 어떨까요? 나는 버전에 의해 명시 적으로 system.web.mvc 등을 참조 할 것이므로 문제가 무엇인지 알지 못한다. 어떤 아이디어?
Models\AccountModels.cs(26, 10): error CS0246: The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?)
Models\AccountModels.cs(26, 10): error CS0104: 'CompareAttribute' is an ambiguous reference between 'System.ComponentModel.DataAnnotations.CompareAttribute' and 'System.Web.Mvc.CompareAttribute'
Models\AccountModels.cs(64, 10): error CS0246: The type or namespace name 'Compare' could not be found (are you missing a using directive or an assembly reference?)
Models\AccountModels.cs(64, 10): error CS0104: 'CompareAttribute' is an ambiguous reference between 'System.ComponentModel.DataAnnotations.CompareAttribute' and 'System.Web.Mvc.CompareAttribute'
또한 VS2012로 업그레이드 한 후이 문제를보고 시작하여 프로젝트 대상이 변경되었습니다. – shannon