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.
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.