Specifies a key container name for a key pair to give an assembly a strong name.
/keycontainer:container
-or-
/keycontainer:"container"
The compiler creates the sharable component by inserting a public key into the assembly manifest and signing the final assembly with the private key. To generate a key file, type sn -k file at the command line.
You can also pass your encryption information to the compiler with /keyfile. Use /delaysign if you want a partially signed assembly.
See
This option is not available within the development environment.
To set /keycontainer programmatically
The following code compiles source file input.vb
and specifies a key container:
vbc /keycontainer:key1 input.vb