ConfuserEx
ConfuserEx copied to clipboard
Confuser task does not work
I'm trying to perform the following steps:
- Create project ObfuscationTest.csproj here: https://github.com/KvanTTT/ObfuscationTest
- Add Confuser.MSBuild dependecy from https://www.nuget.org/packages/Confuser.MSBuild/2.0.0-alpha-0191
- Add ObfuscationTest.crproj file with the following content:
<project baseDir="bin\Debug\netcoreapp2.1" outputDir="..\..\Obfuscated" >
<rule pattern="true" inherit="false">
<protection id="anti ildasm" />
<protection id="constants" />
<protection id="invalid metadata" />
<protection id="rename">
<argument name="mode" value="decodable" />
</protection>
</rule>
<module path="ObfuscationTest.exe" />
</project>
Add Obfuscation attribute to .csproj file:
<PropertyGroup>
<Obfuscate>True</Obfuscate>
</PropertyGroup>
After that, I'm trying to compile project (Rider) but it's failing with the following error.
0>------- Project finished: ObfuscationTest. Succeeded: False. Errors: 0. Warnings: 0
Obfuscated assembly is also not being created.
If I run msbuild via command line, the following error occurs:
ConfuseAssembly:
[CRITICAL] An IO error occurred, check if all input/output locations are readable/writable.
But all paths are valid and such .crproj works fine with Confuser command line tool.