deprecated (farquhar) wrote in csharp,

This is what is wrong with AssemblyInfo.cs

// Assembly someassembly, Version 1.0.1692.12511

[assembly: AssemblyVersion("1.0.1692.12511")]
[assembly: AssemblyKeyName("")]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("")]
Almost every assembly that isn't coming from Microsoft looks like the above. While assembles from Microsoft look like:

// Assembly System.ServiceProcess, Version 1.0.5000.0

[assembly: AssemblyVersion("1.0.5000.0")]
[assembly: AssemblyDescription("System.ServiceProcess.dll")]
[assembly: CLSCompliant(true)]
[assembly: AssemblyDefaultAlias("System.ServiceProcess.dll")]
[assembly: AssemblyKeyFile(@"E:\DNA\public\tools\common\security\FinalPublicKey.snk")]
[assembly: AssemblyDelaySign(true)]
[assembly: AssemblyConfiguration("Microsoft .NET Framework build environement is Retail.
 SafeSync counter=0")]
[assembly: AssemblyTitle("System.ServiceProcess.dll")]
[assembly: ComVisible(false)]
[assembly: NeutralResourcesLanguage("en-US")]
[assembly: SatelliteContractVersion("1.0.5000.0")]
[assembly: AssemblyInformationalVersion("1.1.4322.2032")]
[assembly: AssemblyTrademark("Microsoft and Windows are either registered trademarks or
 trademarks of Microsoft Corporation in the U.S. and/or other countries.")]
[assembly: AssemblyCopyright("Copyright (C) Microsoft Corporation 1998-2002. All rights
[assembly: AssemblyProduct("Microsoft (R) .NET Framework")]
[assembly: AssemblyCompany("Microsoft Corporation")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification=true)]
This is just my pet peeve of the moment inre Microsoft tools and project defaults. Why must it be so hard to build your own project templates? It just makes no sense to me. Heck in the beat of 2005 they move the AssemblyInfo.cs file even further from developer eyes.

  1. A general Google search which will return lots of empty AssemblyInfo.cs files
  2. And very little guidance from Microsoft in a site limited Google search.
  3. An example of a good AssemblyInfo.cs file from a blog.

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.