Edit

Share via


Use command line option '<option>' or appropriate project settings instead of '<parameter>'

The preferred way to specify a file that contains a public key for an assembly, a public-key container for an assembly, or a partial-signed assembly is to use the Visual Basic compiler options. We do not recommend use of the AssemblyKeyFileAttribute, AssemblyKeyNameAttribute, or AssemblyDelaySignAttribute attributes in your code.

Error ID: BC41008

To correct this error

  1. Use the -keyfile, -keycontainer, or -delaysignVisual Basic compiler options instead of the AssemblyKeyFileAttribute, AssemblyKeyNameAttribute, or AssemblyDelaySignAttribute attributes in your code.

See also