One way to sign an F# assembly is via the AssemblyFileKeyAttribute
attribute.
Create a new module and in it put:
module AssemblyProperties
open System
open System.Reflection;
open System.Runtime.InteropServices;
[<assembly:AssemblyKeyFileAttribute("MyKey.snk")>]
do()
Where "MyKey.snk"
is the path to your key relative to the project directory.
Another way, as found in this bug report on Microsoft Connect, is to add --keyfile:MyKey.snk
to the Other Flags
field in the Properties --> Build
tab.
Using either approach; running sn -v myfsharpassembly.dll
will assert that the assembly is valid after compilation.