chocolatey / Chocolatey.Cake.Recipe

A set of convention based Cake scripts for building Chocolatey projects
Apache License 2.0
5 stars 9 forks source link

Obfuscation doesn't work correctly for .NET Framework projects #64

Closed gep13 closed 2 years ago

gep13 commented 2 years ago

The current obfuscation code that is included within Chocolatey.Cake.Recipe was tried/tested on primarily a dotnet project (i.e. the new version of .NET), and when doing this, it is necessary to pass in the MSBuild project file related to the assembly, so that all the relationships can be found.

When using this approach on a full fat .NET Framework project, it doesn't correctly obfuscate things, as it gets "confused" when it comes to the ILMerge'ing side of things.

Rather than pass a single file into the obfuscation tool (along with the MSBuild project file) it is necessary to pass in all the files that need to be obfuscated. This way the tool correctly ILMerge's and obfuscates the files.

choco-bot commented 2 years ago

:tada: This issue has been resolved in version 0.13.2 :tada:

The release is available on:

Your GitReleaseManager bot :package::rocket: