2

With current Xamarin.Forms 2.3.0.107, I am trying to process xml and json files with Handlebars.net (1.7.1) and Newtonsoft.json(9.0.1), while in Debug all works fine in Relase is json data not injected. In plani C# console project everything works too.

Any thoughts?

string xmlSource = @"<?xml version=""1.0"" encoding=""utf-8"" ?>
                        <content>
                          <location longitude=""{{longitude}}"" latitude=""{{latitude}}"" precision=""{{precision}}"" />
                        </content>";

string jsonData = @"{
    ""longitude"" : 16.605371,
    ""latitude"" : 49.180376,
    ""precision"" : 10,
}";

var jsonDataEx = JsonConvert.DeserializeObject<ExpandoObject>(jsonData);
var template = Handlebars.Compile(xmlSource);
var result = template(jsonDataEx);    
4

1 回答 1

1

这是 Xamarin 错误。将 Xamarin 更新到最新的 alpha 后,一切正常。

我只能质疑这个问题与链接器有关:https ://developer.xamarin.com/guides/android/advanced_topics/linking/

于 2016-08-05T07:21:38.637 回答