Upload
my-hoang
View
18
Download
0
Embed Size (px)
DESCRIPTION
LTUD
Citation preview
Lp trnh ng dng qun l 2
TUTORIAL #1
S dng Visual Studio phin bn c
m project c to bi phin bn mi
Ng Ngc ng Khoa
LTUDQL2 TUT01
1
t vn
Phin bn Visual Studio c khng th m c project c to ra bi Visual
Studio phin bn mi hn.
Tnh hung: ta cn m m ngun ca project demo c gio vin cung cp.
Tuy nhin, demo c vit trn Visual Studio 2010 & my ta ch c ci Visual
Studio 2008.
Cc gii php
1. Khng quan tm ti m ngun c cung cp. Phng php ny c th dn
ti hu qu nghim trng nu nh m ngun c cung cp c gi tr hc
thut & k thut ln
2. Ci phin bn Visual Studio mi nht (phin bn mi chc chn m c
project c to bi phin bn c). Phng php ny c th xem nh
phng php ti u, tuy nhin n li c nhc im l gy lng ph thi
gian & cng sc.
3. Chnh sa file cu hnh ca project vi mc ch nh la Visual Studio.
Phng php ny c mt s rng buc nht nh (s c trnh by phn
di), c th gii quyt c hu ht cc trng hp khi project tho yu
cu & c th c thc hin trong thi gian rt ngn.
Phn tip theo ca ti liu s m t chi tit thc hin & rng buc ca phng
php 3
LTUDQL2 TUT01
2
Phng php chnh sa file cu hnh project
Yu cu
Khi to project, ngoi cc thng tin nh kiu, tn, ni lu, cn c 1 thng tin m ta
cn phi quan tm l Target Framework ca project. Target Framework quy nh
phin bn .NET Framework cn phi c my ca ngi dng cui nhm c th
s dng ng dng.
Project c to bi Visual Studio 2005, target .NET Framework 2.0 s
thc thi c my c ci .NET Framework 2.0
Project c to bi Visual Studio 2008, target .NET Framework 3.5 s
thc thi c my c ci .NET Framework 3.5
Project c to bi Visual Studio 2008, target .NET Framework 2.0 s
thc thi c my c ci .NET Framework 2.0
LTUDQL2 TUT01
3
Do , yu cu ti thiu Visual Studio phin bn c c th m c project to
bi phin bn mi hn l project khi c to phi c target framework nm
trong cc framework m phin bn Visual Studio c h tr.
Visual Studio 2005 h tr ti .NET Framework 2.0
Visual Studio 2008 h tr ti .NET Framework 3.5
Vy, Visual Studio 2005 m c 1 project to bi Visual Studio 2008, project
phi c target framework l .NET 2.0. Tng t, Visual Studio 2008 m
c 1 project to bi Visual Studio 2010, project phi c target framework
l .NET 3.5 hoc thp hn.
Cu trc project
Mt project VB.NET hoc C#.NET gm c 2 loi file cu hnh sau
File project (.vbproj hoc .csproj)
File solution (.sln): cha cc thng tin nh danh sch cc project trong
solution, phin bn Visual Studio c dng to & m solution
Ta cn chnh sa 2 file ny c th nh la c Visual Studio (thao tc chnh
sa c th c thc hin bng Notepad)
LTUDQL2 TUT01
4
Cc thao tc chnh sa m c project to bi Visual Studio 2008
bng Visual Studio 2005
File solution (.sln)
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
File project (.vbproj hoc .csproj)
LTUDQL2 TUT01
5
Cc thao tc chnh sa m c project to bi Visual Studio 2010
bng Visual Studio 2008
File solution (.sln)
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
File project (.vbproj hoc .csproj)