我遷移庫項目的.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