intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

Bài giảng Lập trình C# 2010: Chương 1 - ĐH Công nghệ Đồng Nai

Chia sẻ: Na Na | Ngày: | Loại File: PPTX | Số trang:42

120
lượt xem
20
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Bài giảng Lập trình C# 2010: Chương 1 - Introduction to the Visual Studio 2010 (giới thiệu về Visual Studio 2010) trình bày các nội dung như đặc điểm, vai trò, tính năng của Visual Studio 2010 và một số nội dung khác.

Chủ đề:
Lưu

Nội dung Text: Bài giảng Lập trình C# 2010: Chương 1 - ĐH Công nghệ Đồng Nai

  1. DONG NAI UNIVERSITY OF TECHNOLOGY
  2. DONG NAI UNIVERSITY OF TECHNOLOGY Chapter 1: Introduction to the Visual Studio 2010
  3. DONG NAI UNIVERSITY OF TECHNOLOGY What’s the What C# is .NET Framework & &How a What it contains C# Program runs What you Learn in this chapter? Visual Studio 2010 DEMO C# Console & C#
  4. DONG NAI UNIVERSITY OF TECHNOLOGY Microsoft’s Modern .Net Framework software development [4.0] platform Support several programming languages: C# ,VB, C++,F#... Common Language Runtime (CLR) Include .NET Framework Class Library(FCL)
  5. DONG NAI UNIVERSITY OF TECHNOLOGY Programming language use to create application will run in the .NET CLR Evolution of the C & C++ Why languages Syntax is simple C# ? Directly accessing & manipulating system memory Incorporate the best features from other languages & Clearing up their problems
  6. DONG NAI UNIVERSITY OF TECHNOLOGY Windows Application Application you can write in C# Web Services eb Application W
  7. DONG NAI UNIVERSITY OF TECHNOLOGY m runs? # progra How aC
  8. DONG NAI UNIVERSITY OF TECHNOLOGY C# Source CLR loader (.cs) .NET CLR libraries JIT compiler C# compiler Operating system Assembly CPU & other (.exe or .dll) hardware
  9. DONG NAI UNIVERSITY OF TECHNOLOGY Write source code c# and saved file 1 with .cs extension C# compiler=> Compile source code to 2 an intermediate language (MSIL) MSIL is contained in an 3 assembly(.exe or .dll extension) Can use source code or reference 4 .NET framework libraries
  10. DONG NAI UNIVERSITY OF TECHNOLOGY 5 CLR runs on top of host operating system CLR loads assembly & uses JIT 6 compiler to translate MSIL to native machine code 7 Load .NET libraries if need MSIL code can execute on any CPUs 8 if CPU is supported by CLR
  11. DONG NAI UNIVERSITY OF TECHNOLOGY Powerful, professional Integrated Development Environment (IDE) Integrated compiler, debugger, o 10 di 20 Stu Other useful tool… We can work: al su Ø Console application Vi Ø Window application Ø Web application Ø .NET Libraries
  12. DONG NAI UNIVERSITY OF TECHNOLOGY Solution ??? Project & Project o 10 di Properties 20 Stu Build al su ??? Vi Debuggin g???
  13. DONG NAI UNIVERSITY OF TECHNOLOGY 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 Ø
  14. DONG NAI UNIVERSITY OF TECHNOLOGY Solution to create How ect? & Proj
  15. DONG NAI UNIVERSITY OF TECHNOLOGY 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
  16. DONG NAI UNIVERSITY OF TECHNOLOGY You can see “Solution1” name in the right panel
  17. DONG NAI UNIVERSITY OF TECHNOLOGY 2 How To add New Project : 1. Right click on Solution1 2. Choose Add item 3. Choose New Project
  18. DONG NAI UNIVERSITY OF TECHNOLOGY add New You can Projec choose t any Dialog Applicatio Type n name & click OK
  19. DONG NAI UNIVERSITY OF TECHNOLOGY Many different projects in the Solution
  20. DONG NAI UNIVERSITY OF TECHNOLOGY Problem: You don’t know which Project that you want to run 1. Right click on Project 2. Choose Set as StartUp Project
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2