Variables patch

15 views
Skip to first unread message

rejpon

unread,
Jul 29, 2010, 3:39:09 PM7/29/10
to obfuscar
Hi,

I've uploaded another patch - variables.patch.zip. This one does two
things.

First change is deep variables replacement which means that now if var
A uses var B in it's declaration and var B uses var C, then var A will
be fully evaluated using both B and C using .Replace() method.

Second change is the addition of a special variable "Root" (name
asignable via a const in Project.cs) that if not overriden explicitly
in the xml config file will have the value of this xml file's absolute
directory path. I thought it will be useful when config files are
assigned to projects and obfuscar.exe is placed elsewhere - using that
var in ex. InPath will give ability to construct config file relative
paths (standard relative paths are relative to obfuscar.exe)

Upload to trunk if useful ;-)

rejpon

unread,
Jul 30, 2010, 7:25:30 AM7/30/10
to obfuscar
Replaced with varaible.zip... a small bug correction has been applied.

webbie

unread,
Aug 13, 2010, 7:42:40 AM8/13/10
to obfuscar
This patch is in SVN now. Thanks for the code.

I changed the variable name from "Root" to "ProjectFileDirectory"
because I think it resembles more what it actually holds.
Reply all
Reply to author
Forward
0 new messages