Search code examples
obfuscationdotfuscator

Stopping the build Xamarin Android project while dotfuscator run


I try to integrate Dotfuscator in my Xamarin Project according this manual : https://www.preemptive.com/dotfuscator/ce/docs/help/getting_started_xamarin.html

I executed steps : Import the Targets File and Set MSBuild Properties and I skipped Add Dotfuscator Config File to Project because I have not config as yet. Then I launch building and got this error :

There are no assemblies to process. Stopping the build... enter image description here

Looks like dotfuscator required .dll assemblies but I don't have these, because building is not completed, because dotfuscator is stoping.

UPD

I Edited Android.csproj file like this :

1) added

< DotfuscatorXamarinEnabled >true< /DotfuscatorXamarinEnabled >

2) added this Code

< PropertyGroup > 
< DotfuscatorXamarinConfigFileName >DotfuscatorConfig.xml< /DotfuscatorXamarinConfigFileName >
< DotfuscatorXamarinCliPath>C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition Evaluation4.43.1\dotfuscator.exe< /DotfuscatorXamarinCliPath >
< DotfuscatorXamarinGenerateNewConfigFile >true< /DotfuscatorXamarinGenerateNewConfigFile>
< DotfuscatorIncludeAsInput >< /DotfuscatorIncludeAsInput>   
< /PropertyGroup>   
< Import Project="..\..\PreEmptive.Dotfuscator.Xamarin\PreEmptive.Dotfuscator.Xamarin.targets"/>

before < /Project> tag.

enter image description here

and still have the error : There are no assemblies to process. Stopping the build...

UPD2

I tried to change .csproj file exactly like at this link :: https://www.preemptive.com/dotfuscator/pro/userguide/en/getting_started_protect.html#integrate-xamarin

enter image description here

this time obfuscation not even started. Application was builded, but it was simple apk, as usually.


Solution

  • Your link is to the Dotfuscator Community (CE) user guide, but your screenshot shows you are using Dotfuscator Professional. Instead, see the Xamarin page in the Dotfuscator Professional user guide.

    (Note: I work on the Dotfuscator team.)