2017-07-03 26 views
0

我对我的Xamarin.Android项目使用Dotfuscator“PreEmptive Solutions”。 当我使用Dotfuscator进行发布模式时,Newtonsoft.json库在我的PCL中不起作用(它在Xamarin.Android中正常工作)。 如果我禁用Dotfuscator的应用程序工作正常。Newtonsoft.json不能使用Dotfuscator Xamarin PCL + Android发布模式

任何想法如何解决它?

+0

是你看到什么样的错误?您可能会遇到错误,因为模糊处理会重命名您的JSON序列化所依赖的代码元素。如果是这样,您可能需要从重命名中排除一些代码元素。有关发现错误和配置重命名排除的案例研究,请参阅Dotfuscator的[配置重命名排除](https://www.preemptive.com/obfuscating-xamarin-with-dotfuscator#pctoc-configure-renaming-exclusions)部分-Xamarin文档。 (*免责声明:我为PreEmptive工作。*) –

回答

0

如果您链接从Android编译所有组件 - >连接

注意确保你选择发布从配置

模式需要哟忽略链接此组件

SQLitePCLRaw.batteries_green;SQLite-net; 

了解更多详情

​​

enter image description here