App works in DEBUG but NOT in RELEASE and I need use liker behavior

ephramdephramd ESMember ✭✭

App works in DEBUG but NOT in RELEASE and I need use liker behavior.

When I compile in RELEASE this line doesn't work:

System.IO.File.WriteAllText(inis_path + key, JsonConvert.SerializeObject(value), System.Text.Encoding.UTF8);

I have this error:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.IO.File' does not contain a definition for 'WriteAllText'

The solution to change the linker behavior does not help me because the application increases the size and then I can't publish in the store...

Any ideas? Thanks

Sign In or Register to comment.