Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fix Error setting value to Field on XXXXX After CoreRT? #7953

Closed
akinohana opened this issue Jan 13, 2020 · 2 comments
Closed

How to fix Error setting value to Field on XXXXX After CoreRT? #7953

akinohana opened this issue Jan 13, 2020 · 2 comments

Comments

@akinohana
Copy link

@akinohana akinohana commented Jan 13, 2020

this happens with following code, it works fine before CoreRT

	internal class C1
    {
	    public string p;
    }

    var res = JsonConvert.DeserializeObject<C1>(jsonString);

jsonString = "{\"p\":\"xxxxx\"}"

is there a way I can solve this issue?

or it's not possible, maybe because CoreRT can't do reflection which is required by DeserializeObject?

@MichalStrehovsky

This comment has been minimized.

Copy link
Member

@MichalStrehovsky MichalStrehovsky commented Jan 13, 2020

Did you enable any of the size optimization settings listed here?

DeserializeObject works in the default CoreRT configuration.

@akinohana

This comment has been minimized.

Copy link
Author

@akinohana akinohana commented Jan 14, 2020

@MichalStrehovsky

problem solved after upgrade to 1.0.0-alpha-28513-01 from 27117

great works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.