Why can't I reference System.ComponentModel.DataAnnotations?

后端 未结 14 1685
遥遥无期
遥遥无期 2020-11-28 08:47

I\'m trying to use DataAnnotations in my WPF project to specify a maximum length of strings, with the following:

using System.ComponentModel.DataAnnotations;         


        
14条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 09:28

    If you tried to update visual studio from vs2008 to vs2010. And your app uses framework 3.5 (and you don't want to upgrade it), and also used WCF RIA Services BETA... I have bad news... you MUST upgrade to WCF RIA Services v1 (BETA does not work on vs2010)... and due to this... you also have to install Silverlight 4 + upgrade to framework 4.0

    See this: http://blog.nappisite.com/2010/05/updating-visual-studio-2008net-35-ria.html

提交回复
热议问题