This article is a mirror article of machine translation, please click here to jump to the original article.

View: 19988|Reply: 0

[Source] AssemblyInfo.cs the specific explanation of the file parameters

[Copy link]
Posted on 1/12/2016 2:29:07 PM | | |

There is a configuration file in the asp.net AssemblyInfo.cs which is mainly used to set some parameters of the generated general information about the assembly dll file, and the following is a detailed description of the content of the default AssemblyInfo.cs file

//是否符合公共语言规范(CLS)
[assembly: CLSCompliant(true) ]
//控制程序集中所有类型对COM的可访问性
[assembly: ComVisible(false)]
//代码的作者和这些代码的的开发人员之间的可靠协定
[assembly: ReliabilityContract(Consistency.WillNotCorruptState,Cer.MayFail)]

//标题:
[assembly: AssemblyTitle(".NET Pet Shop Model")]
//备注:
[assembly: AssemblyDescrip{filtering}tion(".NET Pet Shop Middle-Tier Components")]
//配置文件:
[assembly: AssemblyConfiguration("")]
//公司:
[assembly: AssemblyCompany("Microsoft Corporation")]
//产品名称:
[assembly: AssemblyProduct(".NET Pet Shop 4.0")]
//版权:
[assembly: AssemblyCopyright("Copyright ?2005 Microsoft Corporation")]
//商标声明:
[assembly: AssemblyTrademark("")]
//内部名称
[assembly: AssemblyCulture("")]


The specific explanation is as follows:

1. [assembly: AssemblyTitle("")]
[assembly: AssemblyTitle("")]code":"Good the previous assembly indicates that this property is assemblie-wide.
Type name: System.Reflection.AssemblyTitleAttribute
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyTitleAttribute : Attribute

This attribute describes the name of the assembly, such as: so-and-so, company, so-so-so


2. [assembly: AssemblyDescrip{filter}tion("")]
Type Name:
System.Reflection.AssemblyDescrip{filter}tionAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyDescrip{filter}tionAttribute : Attribute

Function:
A simple description of the assembly, such as functions, language, etc

3. [assembly: AssemblyDescrip{filter}tion("")]
Type Name:
System.Reflection.AssemblyDescrip{filter}tionAttribute


Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyDescrip{filter}tionAttribute : Attribute
Function:
A simple description of the assembly, describing the function, characteristics, constraints, etc. of the 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, release, debugging, etc., . .NET runtime does not use this property
5. [assembly: AssemblyCompany("")]
Type Name:
System.Reflection.AssemblyCompanyAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyCompanyAttribute : Attribute
Function:
The name of the company to which the assembly belongs
6. [assembly: AssemblyProduct("")]
Type Name:
System.Reflection.AssemblyProductAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyProductAttribute : Attribute
Function:
The product name described in the assembly

7. [assembly: AssemblyCopyright("")]
Type Name:
System.Reflection.AssemblyCopyrightAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyCopyrightAttribute : Attribute
Function:
Copyright information for assemblies

8. [assembly: AssemblyTrademark("")]
Type Name:
System.Reflection.AssemblyTrademarkAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyTrademarkAttribute : Attribute
Function:
Trademark information for assemblies

9. [assembly: AssemblyCulture("")]
Type Name:
System.Reflection.AssemblyCultureAttribute
Attribute declaration:
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class AssemblyCultureAttribute : Attribute
Function:
The fields enumerated indicate the regionality supported by the assembly. An assembly can also specify zone independence, indicating that it contains resources for the default zone. Run libraries treat assemblies that do not have any regional attributes set to empty as subassemblies. Such assemblies are subject to the subassembly binding rules. For more information, see How Run Libraries Locate Assemblies.




Previous:URL encoding and decoding in ASP.NET
Next:SendCloud Sohu C# version of the email sending tool
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com