我正在将.net Core1.0项目转换为2.2Net Core1.0项目
我正在尝试解析对System.ComponentModel.DataAnnotations的引用,这是否已被分解到.net核心中的单独nuget包中
Error CS0234 The type or namespace name 'DataAnnotations' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?) 发布于 2019-01-10 04:30:05
添加对Microsoft.AspNetCore.App和Microsoft.AspNetCore.All的引用清除了该错误。
https://stackoverflow.com/questions/54117455
复制相似问题