Transcript Ying Chen

.NET
Ying Chen
Junwei Chen
What is Microsoft .NET

.NET is a development platform

Incorporated into .NET





COM+ component services
ASP web development framework
a commitment to XML and object-oriented design
support for new web service development base on
SOAP protocol
…
.NET Platform
Visual Studio .NET
.NET Enterprise
Servers
.NET
Framework
.NET Building
Block Services
Operating system on server, desktop and device
.NET Framework Design Issues
Component Infrastructure
 Language Integration
 Internet Interoperation
 Simple Development

.NET Framework
(Framework Class Library)
Web Services
Web Forms
Windows Forms
Data and XML classes
Framework Base Classes
Common Language Runtime
Assembly



Assembly
 Basic unit of deployment, versioning and
security management
 Consists of a manifest, a set of modules and
an optional set of resources
Module
 Intermediate Language (IL)
 Logical Code
Manifest
 Metadata
 Describes different aspects of an Assembly
Assembly (Cont'd)

Identity



Version



Use sn.exe to generate public/private key pair for the an
assembly
Use strong assembly name which combine assembly
name, version and public key to identify an assembly.
CLR allows any versions of the same assembly to execute
at the same time on the same system
Use strong assembly name for the CLR to load the correct
assembly version, which eliminates version conflicts
Security

Ensure the assembly security via digital signature with the
key pair
C L
R
Execution
ommon
anguage
untime
.NET Common Language Runtime








Enforce type-safety
Runtime discoverability of code and code features
Support Assembly Identifying, Versioning, Security
Cross-language integration
Automatic Memory Management
Thread management
Exception handling
Security check
Deploy and Use Assembly




Global Assembly Cache
(GAC)
Tool GACUTIL.exe to view,
install or uninstall Assemblies
in GAC
Visual Studio .NET using
“Add Reference”
Command Line
csc /r:MyLib.dll hello.cs

Indicate the namespace in
the source code and use
the classes
Framework Class Library



Consistent APIs to all language targeted to
.NET
Interface to the CLR and underlying OS
Using FCL



Indicate the namespace in the source code
Use the classes
Important .NET namespaces

System, System.IO, System.Collections,
System.Threading, System.Reflection, …
Reference


.NET Home Page
http://www.microsoft.com/net/default.asp
.Net Framework Training Modules
http://www.devhood.com/training_modules/


.NET Framework Essentials (O’REILLY)
Introduction to .NET
(Microsoft)