SA changes file alignment

JNeckJNeck Posts: 5
edited February 22, 2011 4:33AM in SmartAssembly 5
We need to post-process obfuscated assemblies.
One of the post-processes needs a file alignment of 4096 bytes but SA changes the alignment to 512bytes even if the source assembly has an alignment of 4096 bytes.
Is there any option to preserve the alignment?
If not, if there any workaround?

Thanks in advance!



  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello Jens,

    SmartAssembly writes its' file in a binary way, and the FileAlignment property is a constant 0x200 (512 bytes). You can't change this. I can log a feature request for the ability to configure it.
  • Hello Brian,

    Thanks for looking into this!

    For us it is very urgent to have such an option because without it we can't use SA on our newest projects.

    Is it possible for you to say if and when this feature will be available?

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hi Jens,

    Honestly, no. These decisions are up to the product management who make them based on number of requests, etc.

    Some other Red Gate products are moving over to UserVoice, so maybe we can be transparent in the future if SmartAssembly also moves that way.
  • Brian DonahueBrian Donahue Posts: 6,590 New member
    The tracking number for this feature request is SA-842, if you need to check back with us.
Sign In or Register to comment.