Você está na página 1de 38

TOPIC 1

INTRODUCTION TO .NET
TECHNOLOGY

OUTLINE
What is .NET?
History of .NET
.NET Framework
Architecture of .NET Framework
Visual Studio.NET
Visual Basic.NET
Q & A
WHAT IS MICROSOFT .NET?
.NET represents an advanced new generation of software
that will drive the Next Generation Internet. Its purpose is
to make information available any time, any place, and on
any device.
Quick Definition
.NET is an initiative to integrate all Microsoft products with the
Next Generation web.

http://www.microsoft.com/net/

NEXT GENERATION INTERNET
Web site
Web site
Web site
Backend
App
Mega
Service
Backend
App
Mega
Service
Loosely-
coupled,
services
connected by
XML-based
messages and
contracts,
written in many
languages
Service
Device
XML-
msgs
Service
Service
Service
WHAT IS MICROSOFT .NET?
(CONT.)
Core components of .NET are:
.NET Infrastructure and Tools
.NET Services
An integrated set of building block services for the new Internet,
including Passport.NET (for user authentication), and services for file
storage, user preference management, calendar management, and
many others.
.NET User Experience
A broader, more adaptive user experience, where information is
delivered in a variety of ways on a variety of different devices.
.NET Device Software
Enables a new breed of smart Internet devices that can leverage Web
Services

http://www.microsoft.com/business/vision/netvision.asp

.NET INFRASTRUCTURE AND
TOOLS
.NET Infrastructure and Tools
.NET Enterprise Servers
SQL 2000
Exchange 2000
ISA 2000
Host Integration Server 2000
Application Center 2000
BizTalk Server 2000
Commerce Server 2000
.NET Framework
Visual Studio.NET
Windows.NET
Whistler (Windows XP)
.NET FRAMEWORK
.NET FRAMEWORK
The .NET Framework (pronounced dot net) is a
software framework developed by Microsoft that
runs primarily on Microsoft Windows.
Includes a large library and provides language
interoperability (each language can use code
written in other languages) across several
programming languages.
.NET FRAMEWORK
Programs written for the .NET Framework execute in a
software environment (as contrasted to hardware
environment), known as the Common Language
Runtime (CLR), an application virtual machine that
provides services such as security, memory
management, and exception handling.
The class library and the CLR together constitute the
.NET Framework.

.NET FRAMEWORK
The .NET Framework's Base Class Library provides
user interface, data access, database connectivity,
cryptography, web application development,
numeric algorithms, and network communications.
Programmers produce software by combining their
own source code with the .NET Framework and
other libraries.
.NET FRAMEWORK
The .NET Framework is intended to be used by
most new applications created for the Windows
platform. Microsoft also produces an integrated
development environment largely for .NET software
called Visual Studio.

.NET FRAMEWORK
.NET Framework consists of 3 main parts:
Common Language Runtime
Framework Classes/Libraries
ASP.NET

http://msdn.microsoft.com/net

HISTORY .NET
Microsoft started development of the .NET
Framework in the late 1990s, originally under the
name of Next Generation Windows Services
(NGWS).
By late 2000 the first beta versions of .NET 1.0
were released.
HISTORY .NET
The .NET Framework family also includes two
versions for mobile or embedded device use. A
reduced version of the framework, the .NET
Compact Framework, is available on Windows CE
platforms, including Windows Mobile devices such
as smartphones
HISTORY .NET
Generatio
n
Version
number
Release date Development tool Distributed with
1.0 1.0.3705.0
13 February
2002
Visual Studio .NET N/A
1.1 1.1.4322.573 24 April 2003
Visual Studio .NET
2003
Windows Server 2003
2.0 2.0.50727.42
7 November
2005
Visual Studio 2005 Windows Server 2003 R2
3.0 3.0.4506.30
6 November
2006
Expression Blend
Windows Vista,
Windows Server 2008
3.5 3.5.21022.8
19 November
2007
Visual Studio 2008
Windows 7, Windows
Server 2008 R2
4.0 4.0.30319.1 12 April 2010 Visual Studio 2010 N/A
4.5 4.5.50709 15 August 2012 Visual Studio 2012
Windows 8, Windows
Server 2012
ARCHITECTURE OF .NET
FRAMEWORK
Common Language Infrastructure (CLI)
Assemblies
Metadata
Security
Class library
Memory Management
THE .NET FRAMEWORK
Common Language Runtime
Managed Code
MS Intermediate Language MSIL
JIT Compiler
Common Type System
Common Language Specification
Class Libraries Namespace
Multiple Language Support
THE .NET FRAMEWORK
Base Class Library
Common Language Specification
Common Language Runtime
ADO.NET: Data and XML
VB C++ C#
V
i
s
u
a
l

S
t
u
d
i
o
.
N
E
T

ASP.NET: Web Services
and Web Forms
JScript
Windows
Forms
Windows
Forms
C
L
I
COMMON LANGUAGE RUNTIME
(CLR)
A common runtime for all .NET languages
Common type system
Common metadata
Intermediate Language (IL) to native code compilers
Memory allocation and garbage collection
Code execution and security
Over 15 languages supported today
C#, VB, Jscript, Visual C++ from Microsoft
Perl, Python, Smalltalk, Cobol, Haskell, Mercury, Eiffel, Oberon, Oz,
Pascal, APL, CAML, Scheme, etc.
Rational is working on Java compiler for CLR

COMMON LANGUAGE RUNTIME
(CLR)
Enables cross-language interoperability
Common Language Specification describes interoperability
requirements
Language/Hardware/OS Independent
Compact framework for small devices
Industrial strength Garbage collector
Designed for multi-processor servers
CLR: EXECUTION MODEL
VB
Source
code
Compiler
C++ C#
Compiler Compiler
Assembly
IL Code
Assembly
IL Code
Assembly
IL Code
Operating System Services
Common Language Runtime
JIT Compiler
Native Code
Managed
code
Unmanaged
Component
COMPILATION IN .NET
Code in VB.NET Code in C#
Code in another
.NET Language
VB.NET compiler C# compiler
Appropriate
Compiler
IL(Intermediate
Language) code
CLR just-in-time
execution
.NET FRAMEWORK LIBRARIES
Single consistent set of object oriented class
libraries to enable building distributed web
applications (Unified Classes)

Built using classes arranged across logical
hierarchical namespaces
For example: System.Data.SQL

Work with all CLR languages
No more VBRun or MFC divide
.NET FRAMEWORK
LIBRARIES
Unified Classes
Web Classes (ASP.NET)
XML Classes
System Classes
Drawing Classes
Windows Forms Data (ADO.NET)
Controls, Caching, Security, Session, Configuration etc
Collections, Diagnostics, Globalization, IO, Security,
Threading Serialization, Reflection, Messaging etc
ADO, SQL,Types etc
Drawing, Imaging, Text, etc
Design, Cmpnt Model etc
XSLT, Path, Serialization etc

ASP.NET
ASP.NET is a new programming framework designed to make
web apps easier to:
Build, Deploy, Run

Radical advancement of todays ASP
Broader programming language support
Visual Basic.NET, Jscript.NET, C#
Easier page programming model
Namespaces
Richer XML features and integration
XCopy/FTP deployment
Better reliability and recovery
Excellent Visual Studio designer support
ASP.NET
ASP.NET is compiled, not interpreted
Better performance
Early binding, strong typing, JIT compiling to native code
Configuration settings in XML-based files
Session state can now be shared across a web form of
ASP.NET servers
.NET State Server Process manages state
Application state is still single sever
ASP.NET detects and recovers from problems
Access violations, memory leaks, deadlocks
ASP.NET supports pre-emptive cycling of apps
Time and request based settings
VISUAL STUDIO.NET
VISUAL STUDIO.NET
Integrated Development Environment (IDE)
Visual Basic.NET
Many language enhancements
Inheritance,Overloading, Free Threading
Visual C++
Integration with .NET Framework with managed extensions (classes)
C#
New development language
Based on C/C++ with Garbage Collection/Memory Management
JUMP (Java User Migration Path) to .NET (1/25/01)

Visual J++ has been removed from the Visual Studio suite.


http://msdn.microsoft.com/vstudio

JUMP TO .NET
Consists of 3 sets of tools and a service offering
Interoperability support
Programming tools support
Automated conversion from Java language source code to
C#
Migration services
VISUAL STUDIO.NET FEATURES
Single IDE for all Languages
Server Explorer
- Event Viewer, Message Queues, Services
- SQL Databases, Data Connection, Etc.
Integrated IE Browser
HTML/XML Editors
Macros/Macro Explorer
Solution Explorer
Tabbed Documents
Dynamic Help
Common Forms Editor
VB.NET, C++, and C#
VISUAL BASIC.NET
VISUAL BASIC.NET
Leave it in VB6
WebClasses, ActiveX Documents, DHTML Projects
Thinking in VB.NET
Data Types, Type vs. Structure
Property Functions, Zero Bound Arrays
Default Parameters
New Features
Forms Designer, Declaration Syntax
Structured Exception Handling
Overloading, Inheritance
Free Threading
ADO.NET
Toolbox: contains controls used to customize forms. Using
visual programming, programmers can drag and drop
controls onto the form instead of building them by writing code.
The wide variety of controls that are contained in the Toolbox
is a powerful feature of the Visual Studio .NET IDE.
Solution Explorer: window provides access to all the files in
the solution.The Solution Explorer window includes a toolbar
that contains several icons. When clicked, the show all files
icon displays all the files in the solution. The number of icons
present in the toolbar is dependent on the type of file
selected.
Properties : window displays the properties for a form or
control. Properties specify information such as size, color and
position. Each form or control has its own set of properties; a
propertys description is displayed at the bottom of the
Properties window whenever that property is selected.

If the Properties window is not visible,
selecting View > Properties Window, displays the Properties
window.

The Properties window is crucial to visual programming; it
allows programmers to modify controls visually, without writing
code.
QUESTION & ANSWER
What is .NET?
List the generation of .NET Technology
.NET Framework ?
CLI? And the parts in CLI?
What is CLR (explain more)?
List 3 main parts of .NET Framework
List Visual Studio.NET features

NEXT DISCUSSION AND
PRESENTATION
Describe the event driven programming concept in
Visual Studio.NET

Differentiate Microsoft Visual Studio vs Visual
Studio.NET

Advantages of Visual Studio.NET
RESOURCES
Microsoft
http://www.microsoft.com/net
http://msdn.microsoft.com/net
Programmer Resources
http://www.gotdotnet.com
http://www.devx.com
VB6 to VB.NET Whitepaper
http://msdn.microsoft.com/library/techart/vb6tovbdotnet.htm
Example Site
http://www.ibuyspy.com

http://en.wikipedia.org/wiki/.NET_Framework Retrieved on 16 Dec 2012


QUESTIONS?
http://www.iisweb.com

Você também pode gostar