Open divyeshneo opened 2 years ago
Are you getting any output at all? I found this issue when having the same problem, but mine had previously been working. It's not sufficient to add the values to the .csproj file, you also need to create a .crprog file, with the same name as your output file. E.g. for an output file of program.exe you need a program.crproj files as well. In my case, I had renamed my output file, so it was no longer matching the name of the .crproj file, and it was just copying the program to the confused folder, but not actually obfuscating it.
In .csproj I have
<PropertyGroup>
<Obfuscate>true</Obfuscate>
</PropertyGroup>
In .crprog I have:
<project outputDir="$(OutDir)confused\" baseDir="$(MSBuildProjectDirectory)" xmlns="http://confuser.codeplex.com">
<rule pattern="true" preset="normal" inherit="false" />
</project>
Hello, did you resolve this? I was trying the solution provided by @raburton, however, the output files are still not obfuscated. I have copied exactly the content of the .crprog file as you have mentioned. I have no idea what I might be missing.
This really needs to get put into the docs: https://github.com/mkaring/ConfuserEx/wiki/MSBuild-Integration
Steps to Reproduce: