« VB vs. C# Comparison | Main | Web Application Virtual Directory Binding »

Lessons learned from FxCop

Add the following to Assembly.cs

[assembly:System.CLSCompliant(false)]

[assembly:System.Runtime.InteropServices.ComVisible(false)]

 

Specify an assembly KeyFile:

[assembly: AssemblyKeyFile(@"..\..\..\..\kzKey.snk")]

 

Set the projects “Wrapper Assembly Key File” property to assign strong names to automatically generated interop assemblies.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)