Search code examples
xamarinuwpdotfuscatorpreemptive

Dotfuscator UWP command exited with code 1


I am configuring my Xamarin solution to obfuscate the code using Dotfuscator using this instructions, all went fine with my Android and iOS projects, but I'm not being able to get it working with UWP. My UWP project is targeting v10.0.15063 and I've tried with Dotfuscator CE v5.30.0.5167 and v5.32.1.6167 with no luck.

The error:

El comando ""C:\Program Files (x86)\PreEmptiveSolutions\DotfuscatorCE\dotfuscatorCLI.exe" /p:InDir="obj\x86\Release\DotfuscatorXamarin\dfin",OutDir="obj\x86\Release\DotfuscatorXamarin\dfout",ReportDir="DotfuscatorReports\x86\Release" "DotfuscatorConfig.xml"" salió con el código 1.

Anyone can help?

Updated

I've changed the log level of VS build to normal and this is what I get:

1>  [Resultado de la compilación] Analizando el marcado...  
1>  [Resultado de la compilación] El valor no puede ser nulo.  
1>  Nombre del parámetro: key  
1>  [Resultado de la compilación] Error de compilación.

Solution

  • Disclaimer: I work for the Dotfuscator team at PreEmptive Solutions, and am answering this question in that capacity.

    The issue you mention appears to be one we recently fixed, relating to Dotfuscator being unable to determine the type a DataContext is set to.

    Currently the fix is available in Professional Edition 4.33.0, available here. There's not presently a version of Community Edition with the fix, but you may be able to work around the issue by disabling markup analysis. To do so, set a project property with the name disable_markup_analysis and value true.