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

后端 未结 14 1706
遥遥无期
遥遥无期 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:40

    If using .NET Core or .NET Standard

    use:

    Manage NuGet Packages..

    instead of:

    Add Reference...

提交回复
热议问题