SkipType

12 views
Skip to first unread message

obiwanjacobi

unread,
May 13, 2007, 5:57:33 AM5/13/07
to obfuscar
I'm not sure if this is a bug or I am just using it wrong but...

I'm having trouble getting SkipType to work. I'm using VS.NET 2005 and
want to skip the Settings file for my project (otherwise runtime
reflection is screwed). So I specified my module tag (only one module,
so thats easy) and a SkipType and a SkipMethod tag inside the Module
tag. Something like this ("Jacobi" is my surname).

<Module file="$(InPath)\Jacobi.MyApp.exe" >
<SkipType type="Jacobi.MyApp.Properties.Settings" />
<SkipMethod type="Jacobi.MyApp.Properties.Settings"
attrib="public" rx=".*" />
</Module>

In the mapping file I can see that the public methods (and properties)
are skipped, but the type is still being obfucated (into A.f)
Am I doing it wrong?

-- Marc

drcf...@gmail.com

unread,
May 14, 2007, 9:03:47 AM5/14/07
to obfuscar
Try:

<Module file="$(InPath)\Jacobi.MyApp.exe" >
<SkipType name="Jacobi.MyApp.Properties.Settings" />


<SkipMethod type="Jacobi.MyApp.Properties.Settings"
attrib="public" rx=".*" />
</Module>

The attribute in your SkipType element that specifies the name of the
type should be 'name'.

obiwanjacobi

unread,
May 15, 2007, 1:41:24 AM5/15/07
to obfuscar
Thanx.
I misread the example you gave on the mono-cecil group.
Duh! ;-)

Ryan Williams

unread,
May 15, 2007, 8:44:16 AM5/15/07
to obfu...@googlegroups.com
It's also available, with a bit more detail, at
http://code.google.com/p/obfuscar/wiki/Configuration

Obiwan Jacobi

unread,
May 15, 2007, 1:37:30 PM5/15/07
to obfu...@googlegroups.com
Hi,
 
I've started with this Xml schema to document the settings file structure.
Perhaps you could include it in your source files (and perhaps embed it as a resource in the assemby).
 
With schema-based xml editors this will get developers started very quickly.

Grtx,
--Marc
 
PS: I've entered another issue: code attributes on members!




> Date: Tue, 15 May 2007 08:44:16 -0400
> From: drcf...@gmail.com
> To: obfu...@googlegroups.com
> Subject: Re: SkipType
ObfuscarSettings.xsd
Reply all
Reply to author
Forward
0 new messages