我迁移库项目的.NET标准,我得到以下编译错误,当我尝试使用System.Reflection
API调用Type:GetProperties()
:类型不包含定义“的GetProperties”
类型不包含定义 '的GetProperties'
这是我的project.json
:
{
"version": "1.0.0-*",
"buildOptions": {
"debugType": "portable"
},
"dependencies": {},
"frameworks": {
"netstandard1.6": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
}
}
我错过了什么?
没错。但我认为你的答案有一个错字。它是'typeof(Object).GetTypeInfo()。GetProperties();' –
@MiguelGamboa是的,我的坏,编辑 – Set