Wednesday, December 2, 2009

To disable "Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'"

This is what will help to avoid this warning;


// disable warning about using /keyfile instead of AssemblyKeyFile
#pragma warning disable 1699
[assembly: AssemblyKeyFile(@"..\AAS.Portal.snk")]
#pragma warning restore 1699

No comments:

Post a Comment