This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy


■ I N T R O D U C I N G   . N E T  A S S E M B L I E S 504



Download 21,46 Mb.
Pdf ko'rish
bet983/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   979   980   981   982   983   984   985   986   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

I N T R O D U C I N G   . N E T  A S S E M B L I E S



504

8849CH15.qxd  10/22/07  1:46 PM  Page 504




The GAC is located under a subdirectory of your Windows directory named Assembly (e.g.,

C:\Windows\Assembly), as shown in Figure 15-17.



Figure 15-17.

The global assembly cache



Note

You cannot install executable assemblies (

*.exe

) into the GAC. Only assemblies that take the 



*.dll

file


extension can be deployed as a shared assembly.

Understanding Strong Names

Before you can deploy an assembly to the GAC, you must assign it a strong name, which is used to

uniquely identify the publisher of a given .NET binary. Understand that a “publisher” could be an

individual programmer, a department within a given company, or an entire company at large.

In some ways, a strong name is the modern day .NET equivalent of the COM globally unique

identifier (GUID) identification scheme. If you have a COM background, you may recall that AppIDs

are GUIDs that identify a particular COM application. Unlike COM GUID values (which are nothing

more than 128-bit numbers), strong names are based (in part) on two cryptographically related keys

(termed the 

public key and the private key), which are much more unique and resistant to tamper-

ing than a simple GUID.

Formally, a strong name is composed of a set of related data, much of which is specified using

assembly-level attributes:

• The friendly name of the assembly (which you recall is the name of the assembly minus the

file extension)

• The version number of the assembly (assigned using the [AssemblyVersion] attribute)

• The public key value (assigned using the [AssemblyKeyFile] attribute)

• An optional culture identity value for localization purposes (assigned using the

[AssemblyCulture] attribute)

• An embedded 

digital signature created using a hash of the assembly’s contents and the

private key value

C H A P T E R   1 5  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   979   980   981   982   983   984   985   986   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish