140 likes | 366 Views
VB.NET Solution Overview. ITE 370. 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).
E N D
VB.NET Solution Overview ITE 370 University of South Alabama School of CIS
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
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
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
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
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
IDE Overview Demonstrate the Visual Studio.NET IDE University of South Alabama School of CIS
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
Project Properties Screen University of South Alabama School of CIS
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
Building Your First VB.NET Application Do a Demonstration using Visual Studio.NET University of South Alabama School of CIS
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
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