我正在为我的 Xamarin.Android 项目使用 Dotfuscator“PreEmptive Solutions”。当我将 Dotfuscator 用于发布模式时,Newtonsoft.json 库在我的 PCL 中不起作用(它仅在 Xamarin.Android 中运行良好)。如果我禁用 Dotfuscator,则该应用程序可以正常工作。
知道如何解决吗?
我正在为我的 Xamarin.Android 项目使用 Dotfuscator“PreEmptive Solutions”。当我将 Dotfuscator 用于发布模式时,Newtonsoft.json 库在我的 PCL 中不起作用(它仅在 Xamarin.Android 中运行良好)。如果我禁用 Dotfuscator,则该应用程序可以正常工作。
知道如何解决吗?
如果您从 Android 构建链接所有程序集 --> 链接器
注意确保从配置中选择发布模式
你需要忽略链接这个程序集
SQLitePCLRaw.batteries_green;SQLite-net;
更多细节
https://developer.xamarin.com/guides/android/advanced_topics/linking/