What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

New Obfuscation system in Store Compiler - How to make Product compatible with

@alisha

Well-Known Member
Joined
Sep 29, 2012
Messages
4,063
Reaction score
21
First of all for any project you need to have .csproj also in zip, so compiler will find all your files.

For those of you, that using HB Settings class for store Setting and having problems with loading resources or having encoded name of class instead of normal in Settings .XML file,

Due to compiler changes you need to add attribute [Obfuscation(Exclude = true)] to each not public class which you have resources in or using from reflection.

For Settings class you can also just set class as public instead of internal (which Settings class by default is).

Due to Compiler update:
  • Alls classes derived from Settings class should be public
  • All resources should be Generated by: PublicResXFileCodeGenerator


For example for Settings class you all probably have:

PHP:
using System.Reflection;

namespace Alisha
{

    public class MySettings : Settings
    {
       //..
    }

    [Obfuscation(Exclude = true)]
    internal class MyClass
    {
       //..
    }
}

Also make sure, you added System.Reflection namespace to get access to this attribute.

Also if you use dynamic names calls with reflection class, each class you call by it should also be public or have this attribute.
 
Last edited:
Wouldn't it be easier if they added [Obfuscation(Eclude = true)] to Styx.Helpers.Settings , since we're almost all deriving our settings class from it?
 
Wouldn't it be easier if they added [Obfuscation(Eclude = true)] to Styx.Helpers.Settings , since we're almost all deriving our settings class from it?

Thats already done, however those attributes are stripped out after they are processed by ConfuserEx. So second instance of ConfuserEx running on store products is not aware of the attributes in HB core
 
UPD: Due to new changes of Compiler:

  • Alls classes derived from Settings class should be public
  • All resources should be Generated by: PublicResXFileCodeGenerator
 
Back
Top