tôi làm việc trên một chiếc điện thoại Windows 7.1 ứng dụng trên Visual Studio 2010. tôi cố gắng để làm điều đó:Một hoặc nhiều loại cần thiết để biên dịch một biểu hiện năng động không thể được tìm thấy
dynamic dyn = JsonConvert.DeserializeObject(json);
MessageBox.Show(dyn.somevar);
Tôi có lỗi này:
One or more types required to compile a dynamic expression cannot be found. Are you missing references to Microsoft.CSharp.dll and System.Core.dll?
Tôi đã cố thêm C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\Microsof.CSharp.dll
nhưng không hoạt động.
Tôi có thể làm gì bây giờ?
thx cho câu trả lời của bạn, làm cách nào tôi có thể làm những gì tôi muốn làm như vậy? – flow
bạn cần giới thiệu loại mới. Và deserialize json của bạn vào trường hợp của loại đó. –
http://stackoverflow.com/questions/11126242/using-jsonconvert-deserializeobject-to-deserialize-json-to-ac-sharp-poco-class –