R – Signing an Assembly with Nant

.netnantsigningstrongname

How do I automatically add a strong name to a .NET assembly using a nant task?

Best Solution

Take a look at the delay-sign task:

Sign partially-signed foo.dll with bar.snk:

<delay-sign keyfile="bar.snk" verbose="false">
    <targets>
        <include name="foo.dll" />
    </targets>
</delay-sign>

This might also be of interest: NAnt task for Code Signing