1. Add to your project's references NineRays.ObfuscationAttributes.dll assembly that you can find in the \\SDK\\Obfuscation Attributes\\ folder of spices.net installation folder.
2. Add to the Imports declarations in your .vb file following line:
Imports NineRays.Obfuscator
3. Attach to the member that you can exclude from obfuscation following attribute:
Before attaching:
[VB.Net]
Namespace MyNamespace
Public Class MyClass
Inherits Object
Private _name As String
Public Property MyProperty as String
Get
Return Me._name
End Get
Set(ByVal as String)
Me._name = Value
End Set
End Property
End Class
After attaching:
[VB.Net]
Imports NineRays.Obfuscator
Namespace MyNamespace
[NotObfuscate]'exlude this class from obfuscation (but not its members)
Public Class MyClass
Inherits Object
Private _name As String
[NotObfuscate]'exclude this property from obfuscation
Public Property MyProperty as String
Get
Return Me._name
End Get
Set(ByVal as String)
Me._name = Value
End Set
End Property
End Class
4. You can find the .vb source of obfuscation attributes in the same with NineRays.ObfuscationAttributes.dll assembly folder for detailed info.
5. There is not necessary to distribute NineRays.ObfuscationAttributes.dll with your app, as this assembly uses only for marking members purposes and doesn't affects functionality of your application.