Essential. Net Reading Notes [Part 2]

Source: Internet
Author: User

Previous Article (http://interma.cnblogs.com/archive/2005/11/24/283814.html)

III.Chapter 2 Components

1.CLRModule inclusionCode, Metadata, and resources.CLRThe module is stillWinntOfPE/coffThe extension version of the executable file. Most of the content is stored inPE/coffFile. Text.

2.4Type of module output:EXE, winexe, library, Module. OnlyModuleCannot be deployed independently (ProgramLevel is the atomic unit of deployment), that isCLRIt cannot be loaded directly.

3.Assembly(Assembly)Is composed of one or more modules.

4.The Assembly metadata contains the Assembly List section (Assembly manifest, That is. AssemblyInstead. Assembly extern), For modules without assembly list(Module),CLROnly indirect loading is allowed.

5.Assembly4Some names (Strong names ):Name, version, culture, publickeytoken.

6.ContainCultureThe feature assembly cannot contain code. They are pure resource assembly (also knownSatelliteAssembly ). That is to say, all the Assembly containing the Code isCulture-neutral.

7.Strong name program assemblyPublic KeyAttached to the Assembly.

8.CLRAlways load the Assembly as needed. (Good feature)

9.Assembly. loadform (): Load directly through the Assembly loader (load by location), completely ignoring any version policy.

Assembly. Load (): Parse through the Assembly parser, and then load through the Assembly loader.

10. The version policy can only be used on a strongly-named assembly.

11. Version Policy3Application policy (App. config)=>Issuer Policy (Integrated Resources)=>Machine policy (Machine. config). Note that the issuer policy is generally used for components to indicate the versions of the components that can be compatible with each other. (Good feature)

12. Policy for searching assembly files:[1] GAC => [2] codebase hint (hrefLocation) => [3] probing(AppbaseDirectory and Its subdirectories)

[To be continued...]

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.