1. Trang chủ
  2. » Giáo án - Bài giảng

Chapter 1 Introduction to the Visual Studio 2010

42 433 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 42
Dung lượng 3,15 MB

Nội dung

HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com Introduction to the Visual Studio 2010 Chapter 1: HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com What you Learn in this chapter? What’s the .NET Framework & What it contains What C# is &How a C# Program runs Visual Studio 2010 & C# DEMO C# Console HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com .Net Framework [4.0] Microsoft’s Modern software development platform Support several programming languages: C# ,VB, C++,F# Common Language Runtime (CLR) Include .NET Framework Class Library(FCL) HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com Programming language use to create application will run in the .NET CLR Why C# ? Evolution of the C & C++ languages Incorporate the best features from other languages & Clearing up their problems Syntax is simple Directly accessing & manipulating system memory HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com Windows Application HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com C# Source (.cs) C# compiler Assembly (.exe or .dll) CLR loader CLR JIT compiler Operating system CPU & other hardware .NET libraries HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com 1 Write source code c# and saved file with .cs extension 2 C# compiler=> Compile source code to an intermediate language (MSIL) 3 MSIL is contained in an assembly(.exe or .dll extension) 4 Can use source code or reference .NET framework libraries HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com 5 CLR runs on top of host operating system 6 CLR loads assembly & uses JIT compiler to translate MSIL to native machine code 7 Load .NET libraries if need 8 MSIL code can execute on any CPUs if CPU is supported by CLR [...]... UNIVERSITY OF INDUSTRY You can see “Solution1” name in the right panel Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY 2 How To add New Project: 1 Right click on Solution1 2 Choose Add item 3 Choose New Project Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com... OF INDUSTRY Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY 1 Solution 1 File/New/Project (or Ctrl+ Shift +N) 2 Choose Visual Studio Solutions” in left panel 3 Enter Name & location solution => click OK Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com... CITY UNIVERSITY OF INDUSTRY How to add New Item in the Project 1. Right click on Project 2.Choose Add item 3.Choose New Item Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Choose any item Enter name and click “Add” button Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com –... MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY 1 Choose line you want to start debugging 2 Go to Debug menu 3 Choose Toggle Breakpoint or press F9 Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO... – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Many different projects in the Solution Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Problem: You don’t know which Project that you want to run 1 Right click on Project... CITY UNIVERSITY OF INDUSTRY Or Go to menu Project => Choose Project properties Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Project Properties dialog 1 Go to Build tab 2 Platform target please choose “Any CPU” 3 Save project Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com... 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY 4 Go to Debug 5 Choose Start Debugging or press F5 Also you can clear all Breakpoints Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY You can see The Yellow Line And the name +... Integrated compiler, debugger, Other useful tool… We can work:  Console application  Window application  Web application  NET Libraries Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Solution ??? Build ??? Debugging ??? Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com... UNIVERSITY OF INDUSTRY How to build Solution & Project Build Solution Build Project Batch Build Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com HO CHI MINH CITY UNIVERSITY OF INDUSTRY Batch Build You should use Batch Build Build You can check or uncheck project to build Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com... INDUSTRY Solutions and Projects group the items needed to create a program or application:  A Solution can contain one or more Project  A Project represents a particular part of a solution  A Project contains source code file, settings & resource for application  A Project can contain Class Reference libraries  Etc… Author: Duy Thanh Tran – Phone : 09877730 61- Email: thanhxeiko@gmail.com – Blog: . language use to create application will run in the .NET CLR Why C# ? Evolution of the C & C++ languages Incorporate the best features from other languages & Clearing up their problems. 0987773061- Email: thanhxeiko@gmail.com – Blog: http://thanhxeiko.wordpress.com Introduction to the Visual Studio 2010 Chapter 1: HO CHI MINH CITY UNIVERSITY OF INDUSTRY Author: Duy Thanh Tran. http://thanhxeiko.wordpress.com What you Learn in this chapter? What’s the .NET Framework & What it contains What C# is &How a C# Program runs Visual Studio 2010 & C# DEMO C# Console HO CHI MINH

Ngày đăng: 13/05/2014, 11:36

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w