dotfuscator

using Dotfuscator with xamarin.forms project ,error 9009


trying to protect an android xamarin.forms project after setting all requirement as noted in PreEmptive Website and when i try to build i finished with this error:

The command ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE" /p:InDir="obj\Release\90\DotfuscatorXamarin\dfin",OutDir="obj\Release\90\DotfuscatorXamarin\dfout",ReportDir="DotfuscatorReports\Release" "DotfuscatorConfig.xml"" exited with code 9009.


Solution

  • At first thanks Joe , after increasing verbosity it was clear in the build output how to solve it : - in the of the project file (which i wanted to protect with Dotfuscator) there is a property called which i set its value to the path of the dotfuscatorCLI file (as per requested by the property name). The simple solution was to add the CLI file name to the end of the path and all done without errors.

    The old property value was :

    <DotfuscatorXamarinCliPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE</DotfuscatorXamarinCliPath>
    

    I changed it to :

    <DotfuscatorXamarinCliPath>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorCLI.exe</DotfuscatorXamarinCliPath>
    

    The build output that define the problem was as follows:

    "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\PreEmptiveSolutions\DotfuscatorCE"' is not recognized as an internal or external command,operable program or batch file.