Xamarin/Visual Studio 2015: Custom Proguard configuration

蹲街弑〆低调 提交于 2019-12-10 13:34:47

问题


I need to make a customized Proguard configuration. However I cannot find out how to do that. When building a new configuration file is copied into the /obj/release/proguard folder. How can this configuration file be customized?


回答1:


  1. Just put your Proguard.cfg into your Project
  2. Right click on Proguard.cfg > "Build Action" > "ProguardConfiguration"




回答2:


The above answer is 100% correct on how to add the file. To make sure you file gets picked up you can check the output logs, it will contain something like this:

ProguardConfigurationFiles:
      {sdk.dir}tools\proguard\proguard-android.txt;
      {intermediate.common.xamarin};
      {intermediate.references};
      {intermediate.application};
         Proguard.cfg;

NOTE: Make sure that you set your MSBuild output verbosity to Detailed for this (Tools > Options > Build and Run)



来源:https://stackoverflow.com/questions/34380223/xamarin-visual-studio-2015-custom-proguard-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!