我正在将.net core 1.0项目转换为2.2 net core
我正在尝试解决对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?)
答案 0 :(得分:0)
添加对Microsoft.AspNetCore.App和Microsoft.AspNetCore.All的引用均清除了错误。