locked
Dotfuscator does not work in Xamarin Forms RRS feed

  • Question

  • User364264 posted

    I am trying to protect my Xamarin Forms app Using DotFuscator. I am following all the steps from dotfuscator's user guide using the CE edition.

    1. PreEmptive.Dotfuscator.Xamarin.targets added to the root directory of the project.

    2. Edited Android Project file. Created: <PropertyGroup> <DotfuscatorXamarinCliPath>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorCLI.exe</DotfuscatorXamarinCliPath> <DotfuscatorXamarinConfigFileName>DotfuscatorConfig.xml</DotfuscatorXamarinConfigFileName> <DotfuscatorXamarinGenerateNewConfigFile>true</DotfuscatorXamarinGenerateNewConfigFile> </PropertyGroup>

    3. <DotfuscatorXamarinEnabled>true</DotfuscatorXamarinEnabled> added to : <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

    4. <Import Project="..\..\PreEmptive.Dotfuscator.Xamarin.targets" /> inside <Project> tag.

    5. Added after the last </Itemgroup>:<ItemGroup> <None Include="DotfuscatorConfig.xml" /> </ItemGroup>

    6. Build the android project using the Release any CPU configuration.

    The app builds successfully without any errors. However, nothing is obfuscated. Also, the DotfuscatorConfig.xml file is created inside the project without any content.

    Your help is much appreciated!

    Sunday, July 22, 2018 1:37 PM

Answers

  • User364264 posted

    @JGoldberger said: @HeroRMohammed

    Did you go over this blog post about using dotfuscator with Xamarin? https://blog.xamarin.com/protecting-xamarin-apps-dotfuscator/

    This answer from Joe Sewell from Preemptive may help as well: https://stackoverflow.com/a/48815878

    If nothing above helps, I suggest you reach out to Preemptive's Dotfuscator support: https://www.preemptive.com/support/dotfuscator-support

    Thank you @JGoldberger . I went through all those steps and it did not work. I could not get support because I use the community edition.

    However, I Changed the tool to https://yck1509.github.io/ConfuserEx/ and it works perfectly.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, July 29, 2018 9:27 AM

All replies

  • User21936 posted

    @HeroRMohammed

    Did you go over this blog post about using dotfuscator with Xamarin? https://blog.xamarin.com/protecting-xamarin-apps-dotfuscator/

    This answer from Joe Sewell from Preemptive may help as well: https://stackoverflow.com/a/48815878

    If nothing above helps, I suggest you reach out to Preemptive's Dotfuscator support: https://www.preemptive.com/support/dotfuscator-support

    Friday, July 27, 2018 9:02 PM
  • User364264 posted

    @JGoldberger said: @HeroRMohammed

    Did you go over this blog post about using dotfuscator with Xamarin? https://blog.xamarin.com/protecting-xamarin-apps-dotfuscator/

    This answer from Joe Sewell from Preemptive may help as well: https://stackoverflow.com/a/48815878

    If nothing above helps, I suggest you reach out to Preemptive's Dotfuscator support: https://www.preemptive.com/support/dotfuscator-support

    Thank you @JGoldberger . I went through all those steps and it did not work. I could not get support because I use the community edition.

    However, I Changed the tool to https://yck1509.github.io/ConfuserEx/ and it works perfectly.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Sunday, July 29, 2018 9:27 AM
  • User380835 posted

    UPDATE 2019:

    When I tried to protect my Xamarin forms project using Dotfuscator with the available posts/forums/threads, I couldnt do make it work, because I did not understand some steps properly. The latest official Dotfuscator link for protecting your Xamarin App (Android/iOS/UWP etc..,) is given below:

    https://www.preemptive.com/dotfuscator/ce/docs/help/gettingstartedxamarin.html#continuing-release

    I hope this will be really helpful for others, as it helped me. The above official docs is very clear and with relevant screenshots, step-by-step explanation done with an example Xamarin Forms project.

    Monday, May 27, 2019 12:17 PM