Der er en konfigurationsfil i asp.net AssemblyInfo.cs, som hovedsageligt bruges til at sætte nogle parametre for den genererede generelle information om assembly dll-filen, og følgende er en detaljeret beskrivelse af indholdet i standardfilen AssemblyInfo.cs
//是否符合公共语言规范(CLS)
[samling: CLSCompliant(true)]
//控制程序集中所有类型对COM的可访问性 [samling: ComVisible(falsk)]
//代码的作者和这些代码的的开发人员之间的可靠协定 [samling: Pålidelighedskontrakt(Konsistens.VilIkkeCorruptStat,Cer.MåNeFejl)]
//标题: [samling: AssemblyTitle(".NET Pet Shop Model")]
//备注: [assembly: AssemblyDescrip{filtering}tion(".NET Pet Shop Middle-Tier Components")]
//配置文件: [samling: AssemblyConfiguration("")]
//公司: [samling: AssemblyCompany("Microsoft Corporation")]
//产品名称: [samling: AssemblyProduct(".NET Pet Shop 4.0")]
//版权: [samling: AssemblyCopyright("Copyright ?2005 Microsoft Corporation")]
//商标声明: [samling: AssemblyTrademark("")]
//内部名称 [forsamling: ForsamlingKultur("")]
Den specifikke forklaring er som følger:
1. [forsamling: Forsamlingstitel("")] [samling: AssemblyTitle("")]kode": "Godt, den forrige samling indikerer, at denne egenskab er samlingsdækkende. Typenavn: System.Reflection.AssemblyTitleAttribute [AttributeUsage(AttributeTargets.Assembly)] offentlig forseglet klasse AssemblyTitleAttribute : Attribute
Denne egenskab beskriver navnet på samlingen, såsom: så-og-så, firma, så-så-så
2. [assembly: AssemblyDescrip{filter}tion("")] Typenavn: System.Reflection.AssemblyDescrip{filter}tionAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] public sealed class AssemblyDescrip{filter}tionAttribute : Attribute
Funktion: En simpel beskrivelse af samlingen, såsom funktioner, sprog osv
3. [assembly: AssemblyDescrip{filter}tion("")] Typenavn: System.Reflection.AssemblyDescrip{filter}tionAttribute
Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] public sealed class AssemblyDescrip{filter}tionAttribute : Attribute Funktion: En simpel beskrivelse af samlingen, der beskriver funktionen, karakteristika, begrænsninger osv. for samlingen 4. [samling: AssemblyConfiguration("")] Typenavn: System.Reflection.AssemblyConfigurationAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig lukket klasse AssemblyConfigurationAttribute : Attribute Funktion: Assembly-konfigurationsinformation, såsom: detail, release, debugging osv., . .NET-runtime bruger ikke denne egenskab 5. [samling: AssemblyCompany("")] Typenavn: System.Reflection.AssemblyCompanyAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig lukket klasse AssemblyCompanyAttribute : Attribut Funktion: Navnet på det firma, som forsamlingen tilhører 6. [samling: AssemblyProduct("")] Typenavn: System.Reflection.AssemblyProductAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig lukket klasse AssemblyProductAttribute : Attribute Funktion: Produktnavnet beskrevet i samlingen
7. [forsamling: AssemblyCopyright("")] Typenavn: System.Reflection.AssemblyCopyrightAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig forseglet klasse AssemblyCopyrightAttribute : Attribut Funktion: Ophavsretsinformation for forsamlinger
8. [samling: AssemblyTrademark("")] Typenavn: System.Reflection.AssemblyTrademarkAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig forseglet klasse AssemblyTrademarkAttribute : Attribute Funktion: Varemærkeinformation for samlinger
9. [forsamling: ForsamlingsKultur("")] Typenavn: System.Reflection.AssemblyCultureAttribute Attributdeklaration: [AttributeUsage(AttributeTargets.Assembly)] offentlig lukket klasse AssemblyCultureAttribute : Attribut Funktion: De opregnede felter angiver den regionalitet, som forsamlingen støtter. En samling kan også angive zoneuafhængighed, hvilket indikerer, at den indeholder ressourcer til standardzonen. Kørende biblioteker behandler assemblies, der ikke har nogen regionale attributter sat til empty, som underassemblies. Sådanne samlinger er underlagt undersamlingsbindingsreglerne. For mere information, se Hvordan Kør biblioteker lokaliserer samlinger. |