What is AssemblyInfo.cs used for?

后端 未结 6 933
北恋
北恋 2020-12-23 09:06

My question is pretty basic. What I\'d like to know is what is the AssemblyInfo.cs file used for?

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 09:08

    In AssemblyInfo file Informational Attributes contains the information about product Name, description, Trademark, copyright. In general this information's are either hardcode or store in database or flat file. .NET assembly provides to store this information in AssemblyInfo file and after compilation it becomes the part of assembly. So at run time one can read this information.

    Part of Assembly Information

    1 AssemblyTitle : Title name from the assembly.

    2 AssemblyDescription: It provides the detail description from the assembly.

    3 AssemblyCompany: It Provides the company information from the assembly.

    4 AssemblyProduct: It provides the production information from the assembly.

    5 AssemblyCopyright: It Provides the copyright from the assembly.

    6 AssemblyTrademark: It Provides the trademark from the assembly.

    Each of these attributes has a defined class, which is used to read the information from the AssemblyInfo file.

    From: https://www.dotnetspider.com/forum/157292-assemblyinfo-file.aspx

提交回复
热议问题