Unit 02 Visual Studio 2010 1 Visual Studio

  • Slides: 20
Download presentation
Unit 02. Visual Studio 2010 1

Unit 02. Visual Studio 2010 1

Visual Studio. NET Creating Projects Project Anatomy Using the IDE Code Snippets

Visual Studio. NET Creating Projects Project Anatomy Using the IDE Code Snippets

Creating a new Project

Creating a new Project

Major Project Types Windows Application Web Application/Site Console Application Class Library Windows / Web

Major Project Types Windows Application Web Application/Site Console Application Class Library Windows / Web Control Setup and Deployment Projects

Creating a new Web Application

Creating a new Web Application

Web Site Types ASP. NET Web Application Traditional web app with pages containing text

Web Site Types ASP. NET Web Application Traditional web app with pages containing text and images Viewed in a web browser ASP. NET Web Service Communication protocol used to exchange information across HTTP Used between applications

Project Files . sln Solution File . vbproj Visual Basic Project File . vb

Project Files . sln Solution File . vbproj Visual Basic Project File . vb Visual Basic File (Form, Class etc) . csproj C# Project File . cs C# File (Form, Class etc) . aspx Active Server Pages (Web Forms)

The Solution Explorer

The Solution Explorer

The Properties Window

The Properties Window

The Toolbox

The Toolbox

The Server Explorer

The Server Explorer

The Designer

The Designer

The Code Window Intelli. Sense Regions Syntax Checking

The Code Window Intelli. Sense Regions Syntax Checking

Code Snippets Insert frequently used code Right Click › Insert Snippet Tools>Code Snippet Manager

Code Snippets Insert frequently used code Right Click › Insert Snippet Tools>Code Snippet Manager to add a Snippet

Error Correction Visual Studio provides smart tag error correction for many syntax errors Solutions

Error Correction Visual Studio provides smart tag error correction for many syntax errors Solutions can be automatically applied

Editing Code Snippets Replacement points highlighted Use [TAB] and [SHIFT]+[TAB] to move Overtype with

Editing Code Snippets Replacement points highlighted Use [TAB] and [SHIFT]+[TAB] to move Overtype with new values

Task List User defined tasks Code comments (TODO, HACK, UNDONE) User defined code comments

Task List User defined tasks Code comments (TODO, HACK, UNDONE) User defined code comments Tools › Options › Environment › Task List

Docking Windows New "Guide Diamond" to control docking

Docking Windows New "Guide Diamond" to control docking

Import / Export Settings Some or all of VS 2010 settings can be exported

Import / Export Settings Some or all of VS 2010 settings can be exported using Tools › Import and Export settings Setting can be imported on another machine Settings can also be reset to one of the standard configurations

Lab 2: Introduction to. Net Using code snippets to insert a for loop and

Lab 2: Introduction to. Net Using code snippets to insert a for loop and if statement