How can we help you today? How can we help you today?

Is it possible to obfuscate as part of PostBuild rather than AfterBuild?

We are currently obfuscating our dlls using MSBuild integration with the latest version of SmartAssembly (v6.11.1.433), as part of the AfterBuild target in the dll's csproj file. Many of our projects also include a PostBuild event that copies the dll to other places that it may be needed for other builds (especially installers). However, this means that the PostBuild-copied version of the dll is not obfuscated yet. Is there a means of having the obfuscation step take place before the PostBuild event copy?

It should be noted that I am not well-versed with MSBuild (which may or may not be obvious with this question).
Seth
0

Comments

3 comments

  • Russell D
    Hi, yes it is possible to use it in PostBuild events. See http://documentation.red-gate.com/display/SA6/Using+SmartAssembly+with+MSBuild for more information, but if this isn't enough let me know.
    Russell D
    0
  • Seth
    Apologies for the late response.

    We figured out that doing the obfuscation after the IncrementalClean and before the PostBuild was the best fit for us. Otherwise, the resulting project file looks quite similar to the documentation.

    Thanks!
    Seth
    0
  • Russell D
    Great, thanks for updating the post.
    Russell D
    0

Add comment

Please sign in to leave a comment.