【发布时间】:2023-03-19 21:35:02
【问题描述】:
我正在将库项目迁移到 .net 标准,当我尝试使用 System.Reflection API 调用 Type:GetProperties() 时出现以下编译错误:
类型不包含“GetProperties”的定义
这是我的project.json:
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable"
},
"dependencies": {},
"frameworks": {
"netstandard1.6": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
}
}
我错过了什么?
【问题讨论】: