Forum Xamarin.iOS
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

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.