首页 > 解决方案 > Dotfuscasor Xamarin Dotfocused assembles 与反编译 apk 中的不同

问题描述

我正在使用 ILSpy 来确认 Dotfuscated 文件夹并且工作正常,但是在完成存档并获取签名的 apk 文件之后,我反编译了 apk 并使用 ILSpy 而没有应用 Dotfuscator。

我正在使用 VS 2019,Xamarin 表单。

标签: androidxamarinapkdotfuscator

解决方案


此问题已解决,移至 Dotfuscator Pro 评估

  1. 从 csproj 文件中删除我当前的配置。

  2. 在文件末尾添加以下配置(转到 </project> 标记和标记复制之前:)

      <Import Project="$([System.Environment]::GetFolderPath(SpecialFolder.UserProfile))\.dotfuscator.user.props" Condition="Exists('$([System.Environment]::GetFolderPath(SpecialFolder.UserProfile))\.dotfuscator.user.props')" />
      <!-- Set build properties for Dotfuscator. -->
      <PropertyGroup>
        <!-- Specify the location of the MSBuild targets, if not already provided. -->
        <DotfuscatorMSBuildDir Condition="'$(DotfuscatorMSBuildDir)' == ''">$(MSBuildProgramFiles32)\MSBuild\PreEmptive\Dotfuscator\6</DotfuscatorMSBuildDir>
        <!-- Generate a default Dotfuscator config file (DotfuscatorConfig.xml) if it doesn't exist. -->
        <!-- TODO: Set this to false after the file is generated by the first local build. -->
        <DotfuscatorGenerateConfigFileIfMissing>true</DotfuscatorGenerateConfigFileIfMissing>
        <!-- Enable Dotfuscator for Release builds. -->
        <DotfuscatorEnabled Condition="'$(Configuration)' == 'Release'">true</DotfuscatorEnabled>
        <!-- Only needed when using Tamper Checks for Android. -->
        <!-- TODO: If using Tamper Checks for Android, set this to the SHA-1 fingerprint of the certificate used to sign the app. -->
        <DotfuscatorAndroidSigningCertFingerprint></DotfuscatorAndroidSigningCertFingerprint>
      </PropertyGroup>
      <!-- Import the Dotfuscator MSBuild targets. Must be done last. -->
      <Import Project="$(DotfuscatorMSBuildDir)\PreEmptive.Dotfuscator.Common.targets" />
    

感谢支持团队


推荐阅读