You are on page 1of 31

Module 1:

Overview of the Microsoft .NET


Platform

First Name Last Name 20pt


Job Title 20pt

Today’s Date 18pt

© Copyright 2011 Avanade Inc. All Rights Reserved. 1


The Avanade name and logo are registered trademarks in the US and other countries.
Overview

• Introduction to the .NET Framework


• Overview of the .NET Framework
• Benefits of the .NET Framework
• The .NET Framework Components
• Languages in the .NET Framework

© Copyright 2011 Avanade Inc. All Rights Reserved. 2


Lesson 1:
Introduction to the .NET Framework

© Copyright 2011 Avanade Inc. All Rights Reserved. 3


Introduction to the .NET Framework

• The .NET Framework


• The .NET Enterprise Servers
• Visual Studio .NET

© Copyright 2011 Avanade Inc. All Rights Reserved. 4


Introduction to the .NET Framework 4

• What Is the .NET Framework 4?


• The Purpose of Visual C#
• What Is an Assembly?
• How the Common Language Runtime Loads, Compiles
and Runs Assemblies
• What Tools Does the .NET Framework Provide?

© Copyright 2011 Avanade Inc. All Rights Reserved. 5


Overview of the .NET Framework

.NET .NET .NET .NET


.NET
Framework 1.1 Framework 2.0 Framework 3.0 Framework 3.5
Framework 4
SP1 SP2 SP1 SP1

Version 4
Managed Version 3.5 new
libraries SP1 new features
Managed Managed features
(adding
libraries libraries
WPF, WCF, Version 3.5
WF) SP1
features
Managed
libraries
Managed
libraries
CLR 1.1 CLR 2.0 CLR 2.0
CLR 2.0
CLR 4

© Copyright 2011 Avanade Inc. All Rights Reserved. 6


Overview of the .NET Framework (cont.)

Visual
Basic C++ C# Perl F# …

XML Web Services User Interface


ASP.NET

ADO.NET: Data and XML

.NET Framework Class Library

Common Language Runtime


COM+
Message
Queuing
(Transactions, Partitions, IIS WMI
Object Pooling)

Win32/64

© Copyright 2011 Avanade Inc. All Rights Reserved. 7


Benefits of the .NET Framework

• Based on Web standards and practices


• Designed using unified application models
• Easy for developers to use
• Extensible classes

© Copyright 2011 Avanade Inc. All Rights Reserved. 8


What Is the .NET Framework 4?

Common Language Runtime

Class Library

Development Frameworks

© Copyright 2011 Avanade Inc. All Rights Reserved. 9


Lesson 2:
The .NET Framework Components

© Copyright 2011 Avanade Inc. All Rights Reserved. 10


The .NET Framework Components

• Common Language Runtime


• .NET Framework Class Library
• ADO.NET: Data and XML
• Web Forms and XML Web Services
• User Interface for Windows

© Copyright 2011 Avanade Inc. All Rights Reserved. 11


Common Language Runtime

Base Class Library Support

Thread Support COM Marshaler

Type Checker Exception Manager

Security Engine Debug Engine

MSIL to Native Code Garbage


Compilers Manager Collector

Class Loader
© Copyright 2011 Avanade Inc. All Rights Reserved. 12
.NET Framework Class Library

System System.Security System.Runtime.InteropServices

System.Net System.Text System.Globalization

System.Reflection System.Threading System.Configuration

System.IO System.Diagnostics System.Collections

© Copyright 2011 Avanade Inc. All Rights Reserved. 13


ADO.NET: Data and XML

ADO.NET: Data and XML


System.Data System.XML

Data Set Data Row


System.Xml.Schema

Data Table Data View


System.Xml.Serialization

© Copyright 2011 Avanade Inc. All Rights Reserved. 14


Web Forms and XML Web Services

ASP.NET
System.Web
Services UI

Description
HTML Controls
Discovery
Protocols Web Controls

Caching Security

Configuration SessionState

© Copyright 2011 Avanade Inc. All Rights Reserved. 15


User Interface for Windows

System.Windows.Forms

System.Drawing

© Copyright 2011 Avanade Inc. All Rights Reserved. 16


What Tools Does the .NET Framework Provide?

Caspol.exe Makecert.exe

Ngen.exe
Gacutil.exe

Ildasm.exe Sn.exe
© Copyright 2011 Avanade Inc. All Rights Reserved. 17
Lesson 3:
Languages in the .NET Framework

© Copyright 2011 Avanade Inc. All Rights Reserved. 18


Languages in the .NET Framework

• C# - Designed for .NET


– New component-oriented language

• Managed Extensions to C++


– Enhanced to provide more power and control

• Visual Studio .NET


– New version of Visual Basic with substantial language
innovations

© Copyright 2011 Avanade Inc. All Rights Reserved. 19


Languages in the .NET Framework
(continued)
• F#
– A programming language that provides support for functional
programming in addition to traditional object-oriented and
imperative (procedural) programming

• Third-party Languages

© Copyright 2011 Avanade Inc. All Rights Reserved. 20


The Purpose of Visual C#

C#

C# is the language of choice for many developers who build .NET


Framework applications

C# uses a very similar syntax to C, C++, and Java

C# has been standardized and is described by the ECMA-334 C#


Language Specification

© Copyright 2011 Avanade Inc. All Rights Reserved. 21


Lesson 4:
Creating Projects Within Visual Studio 2010

© Copyright 2011 Avanade Inc. All Rights Reserved. 22


Creating Projects Within Visual Studio 2010

• Key Features of Visual Studio


• Templates in Visual Studio 2010
• The Structure of Visual Studio Projects and Solutions
• Creating a .NET Framework Application
• Building and Running a .NET Framework Application
• Demonstration: Disassembling a .NET Framework
Assembly

© Copyright 2011 Avanade Inc. All Rights Reserved. 23


Key Features of Visual Studio 2010

Visual Studio 2010:

Intuitive IDE that enables developers to quickly build applications in


their chosen programming language

Visual Studio 2010 features:

Rapid application development


Server and data access
Debugging features
Error handling
Help and documentation

© Copyright 2011 Avanade Inc. All Rights Reserved. 24


Templates in Visual Studio 2010
Console Application

WPF Application

Class Library

Windows Forms Application

ASP.NET Web Application

ASP.NET MVC 2 Application

Silverlight Application

WCF Service Application

© Copyright 2011 Avanade Inc. All Rights Reserved. 25


The Structure of Visual Studio Projects and
Solutions
Visual Studio Solution

Visual Studio solutions are wrappers for .NET projects


Visual Studio solutions can contain multiple .NET projects
Visual Studio solutions can contain different types of .NET projects

ASP.NET project WPF project


.aspx .csproj .xaml .csproj
.aspx.cs .config .xaml.cs .config

Console project

.cs .csproj
.config
© Copyright 2011 Avanade Inc. All Rights Reserved. 26
Creating a .NET Framework Application

1 Open Visual Studio 2010

2 On the File menu, click New, and then click Project

3 In the New Project dialog box, specify the following, and


then click OK:
- Project template
- Project name
- Project save path

Programmer productivity features include:


IntelliSense

Code snippets
© Copyright 2011 Avanade Inc. All Rights Reserved. 27
Building and Running a .NET Framework
Application

Visual Studio

1 In Visual Studio 2010, on the Build menu, click Build Solution

2 On the Debug menu, click Start Debugging

Command line

csc.exe /t:exe /out:" C:\Users\Student\Documents\Visual Studio


2010\MyProject\myApplication.exe"
"C:\Users\Student\Documents\Visual Studio 2010\MyProject\*.cs"

© Copyright 2011 Avanade Inc. All Rights Reserved. 28


Demonstration: Disassembling a .NET Framework
Assembly

In this demonstration, we will:


• Run an existing .NET Framework application
• Open Ildasm
• Disassemble an existing .NET Framework assembly
• Examine the disassembled .NET Framework assembly

© Copyright 2011 Avanade Inc. All Rights Reserved. 29


Review

• Introduction to the .NET


Framework
• Overview of the .NET
Framework
• Benefits of the .NET
Framework
• The .NET Framework
Components
• Languages in the .NET
Framework

© Copyright 2011 Avanade Inc. All Rights Reserved. 30


Questions

© Copyright 2011 Avanade Inc. All Rights Reserved. 31

You might also like