ITE 370: VB.NET Solution Overview
VB.NET Solution Overview
ITE 370
University of South Alabama School of CIS
Last Modified: 10/3/2015
1
ITE 370: VB.NET Solution Overview
VB.NET Solutions & Projects
• A solution is a container for projects and files
– Solution files (.sln, .suo)
– Multi-language support
• A project is a container for a VB application (.vbproj)
• Visual Basic source files contain classes, forms, modules, etc.
(.vb)
University of South Alabama School of CIS
Last Modified: 10/3/2015
2
ITE 370: VB.NET Solution Overview
Types of VB Projects
• Select from New Project Dialog
• These templates and more…
– Windows Application
– ASP.NET Web Application
– ASP.NET Web Service App.
– Class Library
– Web Control Library
– Console Application
University of South Alabama School of CIS
Last Modified: 10/3/2015
3
ITE 370: VB.NET Solution Overview
Assemblies
• Projects are compiled into assemblies
– The reusable, versionable, self-describing building
blocks of .NET applications
– Which consist of a number of executable files (.exe,
.dll) and resource files
– Some predefined assemblies are provided in the .NET
Framework
– Are created automatically upon compilation
University of South Alabama School of CIS
Last Modified: 10/3/2015
4
ITE 370: VB.NET Solution Overview
Overview of the Visual Studio IDE
• Visual Studio has one IDE for all .NET languages, but
it can be customized
– through “My Profile” on the Start Page
– Set to “Visual Basic Developer” for this class
• Solutions encompass multiple languages, i.e. VB.NET
and C# in the same solution
• Has built-in Web browser
University of South Alabama School of CIS
Last Modified: 10/3/2015
5
ITE 370: VB.NET Solution Overview
IDE Overview
•
•
•
•
•
•
•
•
Solution Explorer
Class View
Toolbox
Form Design window
Code window
Properties window
Output window
Task list
University of South Alabama School of CIS
Last Modified: 10/3/2015
6
ITE 370: VB.NET Solution Overview
IDE Overview
Demonstrate the Visual Studio.NET IDE
University of South Alabama School of CIS
Last Modified: 10/3/2015
7
ITE 370: VB.NET Solution Overview
Project Properties
• Common Property Settings
– Assembly name—name of output file (.exe, .dll, etc.)
for the project
– Output type—type of application to build (Web app,
Windows app, console app, etc.)
– Startup Object—entry point for an application (a form,
Sub Main or <None>)
– Root namespace – the base name that identifies
components in the whole project, used for resolving
naming conflicts
University of South Alabama School of CIS
Last Modified: 10/3/2015
8
ITE 370: VB.NET Solution Overview
Project Properties Screen
University of South Alabama School of CIS
Last Modified: 10/3/2015
9
ITE 370: VB.NET Solution Overview
Project References
• VB.NET projects
can reference
assemblies and
components
• Project | Add
References; Or,
right-click on the
Project in
Solution Explorer,
select Add
Reference
University of South Alabama School of CIS
Last Modified: 10/3/2015
10
ITE 370: VB.NET Solution Overview
Building Your First VB.NET Application
Do a Demonstration using Visual Studio.NET
University of South Alabama School of CIS
Last Modified: 10/3/2015
11
ITE 370: VB.NET Solution Overview
Conclusion
• You have just created your first Visual Studio.NET
application(s)
• You have seen an overview of the IDE
• You have been familiarized with basic project elements
and files
• Now, do some reading on your own, using your book or
the MSDN Library, installed as part of Visual
Studio.NET (or separately installed)
University of South Alabama School of CIS
Last Modified: 10/3/2015
12
ITE 370: VB.NET Solution Overview
References
Chappell, D. Understanding .NET: A Tutorial and
Analysis, 2002, Addison-Wesley, Boston, MA
Ceccucci, W. “Workshop: Moving From VB 6.0 to
VB.NET,” 2003, Information Systems Education
Conference (ISECON), Nov. 2003, San Diego, CA
Microsoft Visual Basic .NET Version 1.0, MSDN Library,
April 2002
Oancea, G. and McDonald, B. Visual Basic.NET By
Example, 2002, Que, Indianapolis, IN
University of South Alabama School of CIS
Last Modified: 10/3/2015
13
Descargar

VB.NET Solution Overview