Skip to content

Using BitMono + publishing application using AOT #220

@coyotezin

Description

@coyotezin

Hello!

My application uses net8 and is currently published with AOT, i would like to somehow implement BitMono obfuscation in the process of publishing the app. What im currently attempting is running it with just a few protection options enabled or one at a time for testing and i did managed to get it to compile and publish but the application end up not running anymore, doesnt matter what protection option i try, any of them end up in not being able to run the application after its published, if i enable the protections and just compile it works fine, but after the AOT publish it seems to be breaking the app.

Is there anything i could try to achieve this?

Thanks

(.csproj)

 <Target Name="ObfuscateBeforeAOT" BeforeTargets="IlcCompile" Condition="'$(PublishAot)' == 'true'">
	<Exec Command="BitMono.CLI -f $(IntermediateOutputPath)$(AssemblyName).dll -l $(OutputPath) -o $(IntermediateOutputPath)obfuscated" />
	<Move SourceFiles="$(IntermediateOutputPath)obfuscated\$(AssemblyName).dll" DestinationFiles="$(IntermediateOutputPath)$(AssemblyName).dll" />
</Target>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions