Hi everyone, I’m having trouble protecting a C# assembly with VMProtect. The program uses some reflection techniques, and errors occur when it is run after protection. I tried adding the [global::System.Reflection.Obfuscation(Exclude=true, Feature=“renaming”)] attribute in some places, and this did solve some of the problems.
But I’m not sure if this is a universal solution for all cases, or if there is a simpler, more general approach that can be applied to a larger range of code. Does anyone have any experience or suggestions? Thank you very much!
Hello, I am sorry for not replying to your message in time. I have been busy recently. Regarding the example you requested, I currently need some time to prepare. I will try to organize it within the next few days, but since I am also taking care of some other things, there is still a small probability that I may not be able to send it within a few days.
So, when applying reflection to assemblies, namespaces, classes, properties, fields, methods, etc., can we ensure that they will not be affected by renaming obfuscation by using the corresponding Obfuscation attribute provided by C#? I want to know the general rules.