6: thông báo thang tin sai
4.2. Cài đặt môi trường phát triển
4.2.1. Cài đặt Visual Studio
vt
Visual Studio 2022 8 | Version 170
Community Powerful IDE. free for students,
‘open-source contributors. and
Professional Protessional IDE best suited to small teams
Enterprise Scalable. end-to-end solution for teams of any size
individuals
Free download The best comprehensive IDE for NET and
C++ developers on Windows. Fully packed with a sweet array of tools and features to elevate and enhance every stage of software development.
Release notes > Compare Editions > How to install offline >
Preview Get early access to latest features not yet in the main release
Learn more >
Release notes >
Truy cập vao link download Visual Studio + VisualStudio2022
Name Date modified Type
Of; VisualStudioSetup.exe 2/8/2022 10:11 AM Application
Size 1,613 KB
ĐỀ) vs commu
Visual Studio Installer
Before you get started, we need to set up a few things so that you can configure your installation.
To learn more about privacy, see the Microsoft Privacy Statement.
By continuing, you agree to the Microsoft Software License Terms.
12 KB x
Khoi chay file setup Visual Studio
33
\nataling — Visual Studio Community 2022 — 17.05
Workloads = individual components Language packs _installation locations
Web & Cloud (4) ; Installation details
ASPNET and web development i Azure đu ` desktop development
Build wed applications using ASP.NET Core, ASP.NET, Azure SOKs, tools, and projects for developing doud apes NET HTML levaScript, and Containers inchuding Docker supp. and cresting resources using .NET and INET Framework. = bnluded
Nt! desktop development took
‘S NT Framework 472 Govelopment took:
SC and Viwal Base Optional G1 Cevetopment tools for NET ĐÃ NẸT Framework 4.8 development tools 2 Bierd for Visual Studio
© intty Framework 6 tool 2 NET profiling tools
lobile development BH eetiCosc
w with NET a INET desktop development a hatha tine dear
Budd cross-platform epphcaborn for OS, Android or Bask WPF Vienciows Forms, end comole applications
Waincoms ung aman. tương C®, Visual Basic anc F* with MET anc.NET Frame © Live Snore TZ MLNET Moxie! Buiter
## desktop Linguage support Pretraptive Orotection - Dutfhus ator
INET Framewort 4.62-4.7.1 developement t..
NET Portstsle Library targeting pack
Python deveopment, @® Nose jz developrent
Editing debugging interective cevelopment anc source Bud scalable network spplicetions using Nodes, an control for A async hronoes event-drewn lavaScript runtiene
Desktop & Mobile (5)
ve Desktop dewedaprment with Co + g Uniewt sal Weedon, Plat lon development Buded madern C++ apps tor Wfinomes using taols of your Create applicators for the Universal Windows Matton choice, including MSVC, Clang, CMske or MSBuild wath C# YB. or caticrally C++
locaton
C:\Program Hles\Microson Visual Sudio\Z022\Community Change
By contning, you sgn ficenae for the Visual & We alse offer the ability coftware with Vous Total space required 61508 io. This software i licensed separately, as set out in the Jr Party Notices oF in its accompanying license: By continuing you abo agree to thove
heanses. Yên . = instal while downloading + —_ instal
Chon cdc g6i pakage can cai đặt
a Microsoft Visual Studio
Hoàn tất cài đặt và khởi dong Visual Studio
34
Visual Studio
Start with a familiar environment
Development Settings: | Visual C+ v
Choose your color theme
(®› Blue ©) Blue (Extra Contrast)
09 Visual Studio 0G Visual Studio
SE ... rr
© Light
sở Visual Studio
max KT
——x
You can always change these settings later.
Start Visual Studio
Chọn giao diện hiển thị
35
Visual Studio 2022
Open recent Get started
—— Pe + Clone a repository
Get code fron an online repository like GitHub or Azure DevOps
> Today
> Yesterday 7 T
4 This week a Open a project or solution
ase Ns Open a local Visual Studio project or .sin file
fa SAprioriSystem.sIn 2/4/2022 4:59 PM
D:\ TrenDuy Thanh \P apers\ideas-papers\Apron _ORM\SApnoriSystem
> This month E2 Open a local folder
> Older Navigate and edit code within any folder
Create a new project
Choose # project template with code scaffolding to get started
Gỗ
Continue without code >
Giao điện Visual Studio khi khoi déng 4.2.2. Cài đặt SQL Server
Hướng dẫn này được viết theo SQL Server 2022 ở phiên bản CTP 2.0.
'Yêu cầu cấu hình tối thiểu:
~ Bộ nhớ RAM từ 1 GB trở lên.
~ Hệ điều hành Windows 10 hoặc Windows Server 2016 về sau.
Tải xuống và cài đặt Microsoft SQL Server 2022:
Tải xuống tệp cài đặt từ Microsoft.com: SOL Server 2022 Download và bạn có thể chọn “Tải xuống EXE”.
BE Microsoft | Evaluation Center windowsằ WindowsServerằ SQLServer SystemCenter ~ —_ Microsoft Sec
Please select your SQL Server 2022 Preview download
English
Try SQL Server on Azure Learn more >
Truy cap link download SOL Server
36
Evaluation Edition
Select an installation type:
Basic Download Media
Mở file cài đặt vừa download đề khởi chay chuong trinh cai dat va chon Custom SQL Server 2022 RC1
Evaluation Edition
Specify SQL Server media download target location
MINIMUM FREE SPACE 8489 MB
LOAD SIZE 1186 MB
Chọn nơi lưu bản tải xuống và nhấn Install
|
Planning New SOL Server standalone installation or add features to an existing installation Š xi Launch a wizard to install SQL Server 2022 RC1 in a non-clustered environment or to
| Installation add features to an existing SQL Server 2022 RC1 instance.
Maintenance — = II rR " n
Tools a Launch a download page that provides a link to install SOL Server Reporting Services.
An internet connection is required to install SSRS.
Resources
| Advanced W ? Install rver Man Tool
| : in Launch a download page that provides a link to install SOL Server Management Options Studio, SQL Server command-line utilities (SQLCMD and BCP), SQL Server PowerShell
provider, SQL Server Profiler and Database Tuning Advisor. An internet connection is required to install these tools.
Trên trang Installation chọn vào cài đặt như trên
37
Edition Select an edition of SQL Server to install. You can choose to either use a SQL Server license that you have already purchased by entering the product key or choose pay-as-you-go billing through Microsoft Azure.
Li Te
EEE You can also specify a free edition of SQL Server: Developer, Evaluation, or Express. Evaluation has the Global Rules largest set of SQL Server features, as documented in SQL Server Books Online, and is activated with a 180 Microsoft Update -day expiration. Developer edition does not have an expiration, has the same set of features found in Product Updates Evaluation, but is licensed for non-production database application development only. To upgrade from
none one installed edition to another, run the Edition Upgrede Wizard.
Install Setup Files
ma @ Specify a free edition:
Azure Extension for SQL Server 1
Developer v
Feature Selection 1
Feature Rules O Enter the product key:
Feature Configuration Rules - = = =
Ready to Install Installation Progress Complete
< Back Next > Cancel
Chon phién ban Developer
® erver RC1 Set Oo
Azure Extension for SQL Server
Azure Extension for SQL Server is required to enable Microsoft Defender for Cloud, Purview, and Azure Active Directory.
Edition To install Azure extension for SQL Server, provide your Azure
License Haine account or a service principal to authenticate the SQL Server
instance to Azure. You also need to provide the Subscription ID,
Global Rules Resource Group, Region, and Tenant ID where this instance will be
Microsoft Update registered. For more information for each parameter, use the info
Product Updates irks
Install Setup Files Use Azure Login
Install Rules Use Service Principal
Tại mục Install Rules, nhan Next Bo chon Azure Extensions for SOL Server, nhan Next
38
Edition
® Looking for Reporting Services? Download it from the web License Terms
Global Rules Features: Feature description:
Microsoft Update ÍInstanceFestues ... Ì[Theconfguwatlonandopentionofeach
Product Updates © Database Engine Services instance feature of a SQL Server instance is Install Setup Files wae (SOL Server Replication isolated from other SQL Server instances. SQL
picid Ricks (1 Mochine Lesming Services and Language Ex! ne HP side-by-side on
a = (1 Full-Text and Semantic Extractions for Search’ —
Azure Extension for SOL Server Ci Data Quality Services Prerequisites for selected features:
Feature Selection ee tì To Service for External Data i dy installed:
— _.. Windows PowerShell 3.0 or higher
Instance Configuration : =—... C Data Quality Client 1 Microsoft Visual C++ 2017 Redistributable
Server Configuration L Integration Services Database Engine Configuration
Fe . [1 Seale Out Master Disk Space Requirements
ature Configuration Rules O Scale Out Worker
Ready to Install (C1 Master Data Services Drive C: 994 MB required, 115168 MB available Installation Progress Redistributable Features
Complete ‹ >
Select All || Unselect All |
Instance root directory: ,€\Program Files\Microsoft SQL Server\
Shared feature directory: C:\Program Files\Microsoft SQL Server\
Shared feature directory (x86): C:\Program Files (x86)\Microsoft SQL Server\
< Back Cancel
Chon tính ndng database
Tai muc Instance Configuration, dat tén cho Instance
= Nếu máy chua cé cai SQL Server thi chon Default Instance
~ Nếu máy đã có cài SQL Server với Default Instance roi thi chon Named instance
1B SOL Server 20 ~ Oo
Instance Configuration
Specify the name and instance ID for the instance of SQL Server. instance ID becomes part of the installation path.
Edition ——|_ © Default instance
ae O Named instance:* [MSSGLSERVER Global Rules
Microsoft Update
Product Updates Instance [D: MSSQLSERVER ]
Install Setup Files Install Rules
Azure Extension for SQL Server SQL Server directory: C:\Program Files\Microsoft SOL Server\MSSQL16.MSSOLSERVER Feature Selection Installed instances:
Feature Rules
I W | Instance Name Instance ID Features Edition Version |
Sefer Gotan | MSSQLSERVER MSSQL14.MSSQLS.... |SQLEngine Developer 140342110 |
Database Engine Configuration Feature Configuration Rules Ready to Install Installation Progress Complete
Chon Instance
39
B SOL Serve RCI Sete . 1H Server Configuration
Specify the service accounts and collation configuration.
Edition Service Accounts Collation
License Terms
Global Rules Microsoft recommends that you use a separate account for each SQL Server service.
Microsoft Update Service Account Name Password Startup Type
Product Updates SQL Server Agent | NT Service\SQLAgent$M... | — Manual
Install Setup Files NT Service\MSSQLSMSS.. Automatic
Install Rules NTAUTHORITNLOCALS.... Disabled
Azure Extension for SQL Server
Feature Selection LO Grant Perform Volume Maintenance Tasks privilege to SQL Server Database Engine Service Feature Rules This privilege enables instant file initialization by avoiding zeroing of data pages. This may lead Instance Configuration to information disclosure by allowing deleted content to be accessed.
Server Configuration lick here fi TÌ
Database Engine Configuration Feature Configuration Rules Ready to Install Installation Progress Complete
Tai muc Server Configuration, dé mặc định rồi nhắn Next
®B SOL Serve RC1 Setur
Database Engine Configuration
Specify Database Engine authentication security mode, administrators, data directories, TempDB, Max degree of parallelism, Memory limits, and Filestream settings.
Edition Server Configuration Data Directories TempDB MaxDOP Memory FILESTREAM
License Terms a
Global Rules Specify the authentication mode and administrators for the Database Engine.
Microsoft Update
Authentication Mode Product Updates
install Setup Files O Windows authentication mode
Install Rules — @ Mixed Mode (SQL Server authentication and Windows authentication) Potente eee eee Specify the password for the SQL Server system administrator (sa) account.
Feature Selection
Feature Rules Enter password: [eve |
Instance Configuration Confirm password: eee |
Server Configuration - .
Specify SQL Server administrators Database Engine Configuration
SQL Server administrators have unrestricted access to the Database Engine.
Feature Configuration Rules Ready to Install Installation Progress Complete
Add CurentUser Add... | Remove
Chon Authentication mode 4.3. Quản lý phiên bản mã nguồn
Sử Dụng Hệ Thống Quản Lý Phiên Bản (VCS):
- Sử dụng Git làm hệ thông quản lý phiên bản cho dự án.
40
- Khởi tạo một kho lưu trữ Git (repository) cho dự án trên máy cục bộ hoặc trên các nền tảng lưu trữ như GitHub, GitLab, hay Bitbucket.
Tạo Nhánh và Quản Lý Phiên Bản:
- Tạo các nhánh (branches) riêng biệt đề phát triển tính năng mới, sửa lỗi hoặc thực hiện thay đổi mà không ảnh hưởng đến nhánh chính (ví dụ: master/main).
- Thực hiện việc merge các nhánh phụ vào nhánh chính sau khi đã kiểm tra và hoan thành các tính năng/thay đổi.
Commit Thuong Xuyén va Ghi Chu R6 Rang:
- Tién hanh commit thuong xuyén dé lu lai các thay đối trong mã nguồn.
- Ghi chú rõ ràng về mục tiêu vả nội dung cua m6i commit dé dé đàng theo dối và hiểu rõ sự thay đổi.
Tích Hợp và Kiểm Tra Mã Nguồn:
- - Thực hiện việc tích hợp các thay đổi từ các nhánh phụ vào nhánh chính sau khi chúng đã được kiểm tra kỹ lưỡng.
- _ Kiểm tra mã nguồn trước khi tích hợp để đảm bảo rằng không có lỗi nghiêm trọng và mã nguồn đáp ứng tiêu chí chất lượng đã đề ra.
Sử Dụng Dịch Vụ Lưu Trữ Mã Nguồn:
- _ Sử dụng dịch vụ lưu trữ mã nguồn như GitHub, GitLab, hay Bitbucket để lưu trữ mã nguồn của dự án và cho phép cộng tác giữa các thành viên trong nhóm.
- Kết nối dự án của bạn với một dịch vụ lưu trữ mã nguồn sẽ giup quan ly ma nguồn một cách hiệu qua va cung cap công cụ hợp tác tôt.
41