
New in Visual Basic 2008 Original Release Version
The following sections describe the new and enhanced features of the original release version of Visual Basic 2008.
Visual Basic Compiler and Language
Data Access
This release includes the following new features for incorporating data into applications:
Language-Integrated Query (LINQ) technology presents important programming-language advances. LINQ to SQL applies LINQ technology to relational databases. For more information, see LINQ to SQL.
The Object Relational Designer (O/R Designer) assists developers in creating and editing the objects (LINQ to SQL entities) that map between an application and a remote database.
N-tier support for typed datasets provides enhancements to the Dataset Designer that make it easier to separate the TableAdapters and typed dataset code into discrete projects.
Hierarchical update capabilities have been incorporated into the Dataset Designer. These enhancements provide generated code that includes the save logic necessary for maintaining referential integrity between related tables in a database.
Local database caching incorporates a SQL Server Compact 3.5 database into an application and configures it to periodically synchronize the data with a remote database on a server. Local database caching enables applications to reduce the number of roundtrips between the application and a database server when data changes infrequently or when applications can connect to the server database only occasionally.
Microsoft SQL Server Compact 3.5 is a compact database that can be deployed on desktop computers, smart devices, and Tablet PCs. SQL Server Compact 3.5 provides developers with a common programming model for developing both native and managed applications.
For more information about data in Visual Studio 2008, see What's New in Data.
Integrated Development Environment
The following sections describe enhancements to the Visual Studio integrated development environment (IDE).
Enhanced XML Editing
XML capabilities in Visual Basic have been greatly improved with the addition of LINQ to XML. Visual Basic further enhances the XML editing experience with the addition of XML Axis Properties and XML Literals, which allow you to include XML as first-class data types in your Visual Basic code, making it fast and easy to create, transform, modify, and query XML. For more information, see XML in Visual Basic.
Support for New Project Types
In Visual Studio 2008, the Project Designer supports the new Windows Presentation Foundation (WPF) and Web Application (WAP) project types.
There are four WPF project types:
WinFX Windows Application
WinFX Web Browser Application
WinFX Custom Control Library
WinFX Service Library
When a WPF project is loaded into the integrated development environment (IDE), the user interface of the Project Designer pages lets you specify properties specific to WPF applications.
WAPs were added to Visual Studio in Visual Studio 2005 Service Pack 1 and are also included in Visual Studio 2008. The new WAP model is the same as the Visual Studio .NET 2003 Web project model, but it is updated with features of Visual Studio 2005 and ASP.NET version 2.0. The Visual Studio Project Designer supports WAPs, with the limitation that WAPs can only be application-scoped.
You can access the Project Designer by clicking Properties on the Project menu. For more information, see Introduction to the Project Designer.
Support for New .NET Framework Versions
Deployment
The following sections describe enhancements in deployment.
ClickOnce Deployment
ClickOnce deployment has been enhanced with the following new features:
ClickOnce supports the deployment of WPF Web Browser Applications. WPF Web Browser Applications are hosted in a Web browser and therefore require special deployment and security settings. When you build and deploy these applications, Visual Studio provides the appropriate user interface and default values.
ClickOnce gives ISVs the option to re-sign the application manifest with their customer's company name, application name, and deployment and support URL. When end users install the application, the ISV's original company branding still appears on the Do you want to trust this application? dialog box.
You can build and deploy Visual Studio Tools for Office applications by using the Project Designer's Publish page or the Publish Wizard.
ClickOnce supports manifest generation under User Access Control (UAC) in Windows Vista.
For more information, see What's New in Deployment.
Windows Installer Deployment
Windows Installer deployment has been updated to support Windows Vista and the latest .NET Framework versions:
Windows Installer has been updated so that installation on Windows Vista is smooth, even when it is running under User Account Control (UAC).
The .NET Framework Launch Condition supports targeting applications for the new .NET Framework 3.0 and 3.5 versions.
For more information, see What's New in Deployment.
Expanded Samples
Visual Basic 2008 includes many sample applications. The new features covered include the following:
LINQ Technologies:
Windows Communication Foundation:
For more information, see Visual Basic Sample Applications.
Upgrading from Visual Basic 6.0
The upgrade tools in Visual Basic 2008 feature many enhancements, including the ability to upgrade many Visual Basic 6.0 ActiveX controls to their Visual Basic 2008 equivalents.
For more information, see What's New in Upgrading.