CHAPTER 2 Building, Packaging, Deploying, and Administering Applications and Types Flashcards

1
Q

.NET Framework Deployment Goals

A

addresses the DLL hell issue

fixing the problem of having an application’s state scattered all over a user’s hard disk

security

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

MSCorLib.dll

A

MSCorLib.dll is a special file in that it contains all the core types: Byte, Char, String, Int32, and many more.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Building Types into a Module

A

csc.exe /out:Program.exe /t:exe /r:MSCorLib.dll Program.cs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Response Files

A

A response file is a text file that contains a set of compiler command-line switches.

The C# compiler supports multiple response files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

PE32(+) header

A

PE32(+) header is the standard information that Windows expects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CLR header

A

CLR header is a small block of information that is specific to modules that require the CLR (managed modules).

version number of the CLR that the module was built for
a MethodDef token indicating the module’s entry point method
an optional strong-name digital signature

contains the size and offsets of certain metadata tables contained within
the module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

metadata

A

The metadata is a block of binary data that consists of several tables.

definition tables
reference tables
manifest tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Common Definition Metadata Tables

A
ModuleDef
TypeDef
MethodDef
FieldDef
ParamDef
PropertyDef
EventDef
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Common Reference Metadata Tables

A

AssemblyRef
ModuleRef
TypeRef
MemberRef

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

manifest

A

The manifest is another set of metadata tables that basically contain the names of the files that are part of the assembly.

They also describe the assembly’s version, culture, publisher, publicly exported types, and all of the files that
comprise the assembly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

characteristics of assemblies

A

An assembly defines the reusable types

An assembly is marked with a version number

An assembly can have security information associated with it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

three reasons to use multifile assemblies

A

You can partition your types among separate files, allowing for files to be incrementally downloaded as described in the Internet download scenario

You can add resource or data files to your assembly

You can create assemblies consisting of types implemented in different programming languages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Manifest Metadata Tables

A

AssemblyDef
FileDef
ManifestResourceDef
ExportedTypesDef

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Assembly Version Resource Information

A

When building an assembly, you should set the version resource fields by using custom attributes that you apply at the assembly level in your source code.

Version Numbers
Culture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly