@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:
For example for Settings class you all probably have:
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.
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: