Building C# Applications

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

1 Unit 02. Visual Studio Visual Studio.NET Creating Projects Project Anatomy Using the IDE Code Snippets.
Distributed Systems Tutorial 1 - Getting Started with Visual C#.NET.
Advanced Object-Oriented Programming Features
C# Programming: From Problem Analysis to Program Design1 2 Your First C# Program C# Programming: From Problem Analysis to Program Design 2 nd Edition.
Introduction to Computing and Programming
C# Programming: From Problem Analysis to Program Design1 2 Your First C# Program.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Creating a Console Application with Visual Studio
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
September 2008 IT Software Development Guide.
Creating and Running Your First C# Program Telerik Software Academy Telerik School Academy.
Module 1: Introduction to C# Module 2: Variables and Data Types
.NET Overview. 2 Objectives Introduce.NET –overview –languages –libraries –development and execution model Examine simple C# program.
11 Getting Started with C# Chapter Objectives You will be able to: 1. Say in general terms how C# differs from C. 2. Create, compile, and run a.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Chapter 1: A First Program Using C#. Programming Computer program – A set of instructions that tells a computer what to do – Also called software Software.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Scalable Game Development William Roberts Senior Game Engineer
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Computer Programming 1.  Editor Console Application Notepad Notepad++ Edit plus etc.  Compiler & Interpreter Microsoft.NET Framework  Microsoft visual.
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
Active-HDL Interfaces Debugging C Code Course 10.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Applied Computing Technology Laboratory QuickStart C# Learning to Program in C# Amy Roberge & John Linehan November 7, 2005.
CS590VC – Tutorial 6 Client-side connection through external application.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
1 Introduction to C# Programming Console applications No visual components Only text output Two types MS-DOS prompt - Used in Windows 95/98/ME Command.
C# Introduction Part 1. Which Visual Studio Should I use? Any Express (2012, 2013…) or Community Edition 2013 Any full version.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Module 1 Introducing C# and the.NET Framework. Module Overview Introduction to the.NET Framework 4 Creating Projects Within Visual Studio 2010 Writing.
C Programming Lecture 3 : C Introduction 1 Lecture notes : courtesy of Woo Kyun and Chang Byung-Mo.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Automation Engr. Faisal ur Rehman CE-105T Spring 2007.
C# Programming: From Problem Analysis to Program Design
Chapter 2: The Visual Studio .NET Development Environment
INF230 Basics in C# Programming
© 2016, Mike Murach & Associates, Inc.
Computer Terms Review from what language did C++ originate?
Visual Basic Code & No.: CS 218
CSCI 3328 Object Oriented Programming in C# Chapter 2: Introduction to Visual C# Programming UTPA – Fall 2012 This set of slides is revised from lecture.
Chapter 9 S. NandaGopalan, BIT
1. Introduction to Visual Basic
CE-105 Spring 2007 Engr. Faisal ur Rehman
Module 1: Getting Started
Introduction to C# AKEEL AHMED.
William Roberts Ryan Hipple
Web Development in Microsoft Visual Studio 2013
C# Programming: From Problem Analysis to Program Design
© 2016, Mike Murach & Associates, Inc.
Social Media And Global Computing Introduction to Visual Studio
Advanced Programming Lecture 02: Introduction to C# Apps
Understanding the Visual IDE
The University of Texas – Pan American
1. Open Visual Studio 2008.
Microsoft Visual Studio
Chapter 3 – Introduction to C# Programming
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Computer Terms Review from what language did C++ originate?
The Role of Command Line Compiler (csc.exe)
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
C# and ASP.NET Programming
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Building C# Applications Chapter 2 Building C# Applications S. Nandagopalan, B I T

Objectives Command Line Compilation Visual Studio .NET IDE Referencing External Assemblies Demo – Multi Language S. Nandagopalan, B I T

Configuration for csc Right Click My Computer  Properties  Advanced Environment variables  Double Click Path Add the path where csc.exe is loaded C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 S. Nandagopalan, B I T

Command Line Compilation Compiling single source file csc /target:exe TestApp.cs or csc TestApp.cs csc C Sharp Compiler /target:exe *.exe console application /target:winexe windows application /out to name the output File Compiling multiple source files csc /r:System.Windows.Forms.dll TestApp.cs Hello.cs S. Nandagopalan, B I T

Example (Console based) // Hello.cs using System; public class Hello { public static void Main(String[ ] args) Console.WriteLine("Hello World"); } S. Nandagopalan, B I T

Example (Windows based) // HelloWin.cs using System; using System.Windows.Forms; public class HelloWin { public static void Main(String[ ] args) Console.WriteLine("Hello World"); MessageBox.Show("Hi, I am now in Windows!"); } S. Nandagopalan, B I T

Compiling Multiple Source Files // Car.cs using System; public class Car { public void Display() MessageBox.Show ("Car Class"); } // HelloDriver.cs using System; public class HelloDriver { public static void Main (String[ ] args) Console.WriteLine ("Hello World"); Car c = new Car(); c.Display(); } csc /r:System.Windows.Forms.dll HelloDriver.cs Car.cs S. Nandagopalan, B I T

Visual Studio .NET IDE .NET Start Page S. Nandagopalan, B I T

.NET Project Window S. Nandagopalan, B I T

Project Types Windows Application Windows Forms Class Library Builds single file assembly (*.dll) Windows Control Library Same as ActiveX Control ASP .NET Web Application Builds ASP .NET Web Application ASP .NET Web Service .NET Web Service Web Control Library Customized Web Controls Console Application Old Console based Windows Services NT/2000 services (background worker applications) S. Nandagopalan, B I T

.NET Main Page Solution Explorer Tool Box View Class View S. Nandagopalan, B I T

Configuring a C# Project S. Nandagopalan, B I T

Referencing External Assemblies These are predefined list of assemblies automatically recognized by .NET S. Nandagopalan, B I T

Other features of .NET IDE Debugging Breakpoints XML – Related Editing Tools Object Browser Help Menu (F1 is your friend) Documenting the Source Code (XML) C# Preprocessor Directives S. Nandagopalan, B I T

Web Sites for Other IDEs www.gotdotnet.com www.icsharpcode.net S. Nandagopalan, B I T