A
Anton Shepelev
Hello all,
I want to automate the obfuscation of my projects
using dotfuscator, in the Release configuration. To
do that, I have created an MSBuild file specifying
the following post-build event:
SET OUT=$(ProjectDir)$(OutputPath)
SET SRC=%OUT%$(AssemblyName)$(TargetExt)
: The following line removes trailing slash
SET OUT=%OUT:~0,-1%
dotfuscator /controlflow:high /naming:unprintable /enhancedOIn /in:"%SRC%" /out:"%OUT%"
: Remove the default output directory for map files:
rmdir /s /q .\Dotfuscated
In order for it to work, this file must be included
after Microsoft.CSharp.targets, while some of my
other settings are specified in another MSBuild file
that must be included before it. This means that
the changes to the main .csproj file must be made at
two different points. Is there a way to keep them
at one place and in one MSBuild file?
I want to automate the obfuscation of my projects
using dotfuscator, in the Release configuration. To
do that, I have created an MSBuild file specifying
the following post-build event:
SET OUT=$(ProjectDir)$(OutputPath)
SET SRC=%OUT%$(AssemblyName)$(TargetExt)
: The following line removes trailing slash
SET OUT=%OUT:~0,-1%
dotfuscator /controlflow:high /naming:unprintable /enhancedOIn /in:"%SRC%" /out:"%OUT%"
: Remove the default output directory for map files:
rmdir /s /q .\Dotfuscated
In order for it to work, this file must be included
after Microsoft.CSharp.targets, while some of my
other settings are specified in another MSBuild file
that must be included before it. This means that
the changes to the main .csproj file must be made at
two different points. Is there a way to keep them
at one place and in one MSBuild file?