erezak / libphonenumber-csharp

Forking original c# port
Apache License 2.0
198 stars 79 forks source link

Deployment error on Windows Phone #1

Closed erezak closed 11 years ago

erezak commented 11 years ago

When trying to use the library on a Windows Phone 8 device, the IDE responds with:

Deployment Optimization failed with error “Method (s) exceeded the maximum size limit”. Please split your method(s).”

jagui commented 11 years ago

Hi Erezak, how did you fix this issue? I have my own PCL port of libphonenumber and I'm getting the same error on a WP8 device.

Cheers, Juan

erezak commented 11 years ago

Hi,

Please note LocaleData.cs. Windows Phone optimize state doesn't like long methods. I simply moved the dictionary to a file, and the content is being loaded at runtime.