Roles of assemblyinfo. CS files

Source: Internet
Author: User
There is a configuration file assemblyinfo. CS in Asp.net which is mainly used to set the number of workers of the generated General Information DLL file about the Assembly. The following is a detailed description of the default assemblyinfo. CS file.
// Whether the public language specification (CLS) is met)
[Assembly: clscompliant (true)]
// All types of control set can be used to query com
[Assembly: comvisible (false)]
// Reliable agreement between the author of the Code and the developer of the Code
[Assembly: reliabilitycontract (consistency. willnotcorruptstate, Cer. mayfail)]
// Title:
[Assembly: assemblytitle (". Net pet shop model")]
// Remarks:
[Assembly: assemblydescription (". Net Pet Shop middle-tier components")]
// Configuration file:
[Assembly: assemblyconfiguration ("")]
// Company:
[Assembly: assemblycompany ("Microsoft Corporation")]
// Product Name:
[Assembly: assemblyproduct (". Net Pet Shop 4.0")]
// Copyright:
[Assembly: assemblycopyright ("Copyright? 2005 Microsoft Corporation ")]
// Trademark declaration:
[Assembly: assemblytrademark ("")]
// Internal name
[Assembly: assemblyculture ("")]
A detailed explanation is as follows:
1. [Assembly: assemblytitle ("")]
[Assembly: assemblytitle ("")] in the code ":" The preceding Assembly indicates that this attribute works within the Assembly range.
Type name: system. reflection. assemblytitleattribute
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblytitleattribute: attribute
This attribute describes the Assembly name, such as the module of a project of a certain company. This name can contain spaces regardless of valid strings.


2. [Assembly: assemblydescription ("")]
Type name:
System. reflection. assemblydescriptionattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblydescriptionattribute: attribute
Function:
Simple Description of an Assembly, such as functions and languages
3. [Assembly: assemblydescription ("")]
Type name:
System. reflection. assemblydescriptionattribute


Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblydescriptionattribute: attribute
Function:
Describes the functions, features, and constraints of an assembly.
4. [Assembly: assemblyconfiguration ("")]
Type name:
System. reflection. assemblyconfigurationattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblyconfigurationattribute: attribute
Function:
Assembly configuration information, such as retail, publishing, debugging, etc. This attribute is not used during. Net execution.
5. [Assembly: assemblycompany ("")]
Type name:
System. reflection. assemblycompanyattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblycompanyattribute: attribute
Function:
Company Name of the Assembly
6. [Assembly: assemblyproduct ("")]
Type name:
System. reflection. assemblyproductattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblyproductattribute: attribute
Function:
Product Name described in assembly
7. [Assembly: assemblycopyright ("")]
Type name:
System. reflection. assemblycopyrightattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblycopyrightattribute: attribute
Function:
Assembly copyright information
8. [Assembly: assemblytrademark ("")]
Type name:
System. reflection. assemblytrademarkattriction
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblytrademarkattribute: attribute
Function:
Trademark Information of the Assembly
9. [Assembly: assemblyculture ("")]
Type name:
System. reflection. assemblycultureattribute
Attribute declaration:
[Attributeusage (attributetargets. Assembly)]
Public sealed class assemblycultureattribute: attribute
Function:
The enumerated field indicates the region supported by the Assembly. The Assembly can also specify regional independence, indicating that it includes resources for the default culture. The execution library processes assemblies that are not set to null regardless of their regional properties. This type of assembly is subject to the binding rules of the affiliated Assembly. For more information, see how the execution library locates the assembly.


 
This article from: It Knowledge Network (http://www.itwis.com/) specific source exam: http://www.itwis.com/html/net/aspnet/20091211/7123.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.