.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 Operating system on server, desktop and device.NET Enterprise Servers.NET Building Block Services.NET Framework Visual Studio.NET
.NET Framework Design Issues Component Infrastructure Language Integration Internet Interoperation Simple Development
.NET Framework Common Language Runtime Data and XML classes Web FormsWeb ServicesWindows Forms Framework Base Classes (Framework Class Library)
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 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. Version 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 ommon L anguage R untime Execution
.NET C ommon L anguage R untime 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 Framework Training Modules Framework Essentials (O ’ REILLY) Introduction to.NET(Microsoft)