Executive Summary:
Microsoft's Visual Studio 2008 development platform offers new Web 2.0 development capabilities, Language Integrated Query (LINQ), Visual Basic (VB) and C# language enhancements, and mobile application development enhancements, that make this latest release an important upgrade for your organization.
|
Visual Studio 2008 is the latest release of
Microsoft’s flagship development product.
This evolutionary release sports new Web
2.0 development capabilities as well as an array of
new functionality, including Language Integrated
Query (LINQ), specific Visual Basic (VB) and C#
language enhancements, and mobile application development
enhancements. Follow along as I take you
on a guided tour of the most important new features
found in Visual Studio 2008.
Editions of Visual Studio 2008
Microsoft has released two versions of Visual Studio
2008: Visual Studio 2008 Standard Edition and Visual
Studio 2008 Professional Edition. Both editions
share several core features, including the same IntelliSense-
capable IDE, project support, code editors,
Windows and Web Form designers, Microsoft .NET
Framework 3.5, support for 64-bit compilation, ASP
.NET Asynchronous JavaScript and XML (AJAX),
Windows Presentation Foundation, Windows Communication
Foundation, Windows Workflow Foundation,
as well as SQL Server Reporting Services and
LINQ support.
Visual Studio 2008 Professional Edition extends
the feature set provided in the Standard edition by
including the ability to build Microsoft Office applications
as well as mobile device applications. It
also provides a visual Class Designer, an Object Test
Bench, and integrated Unit Testing tools. The Professional
Edition also comes with Business Objects’
Crystal Reports, Server Explorer, and a full copy of
SQL Server 2005 Developer Edition. For more information
about Visual Studio 2008’s integration with
SQL Server, see the sidebar “Visual Studio 2008 and
SQL Server.”
In addition to these two single-developer–oriented
versions of Visual Studio, Microsoft also offers the
enterprise-oriented Visual Studio 2008 Team System,
which includes project management, bug tracking,
and integrated team testing capabilities. Microsoft
also continues to offer several free hobbyist-oriented
Visual Studio Express Editions. You can learn more
about these free editions in the sidebar “Visual Studio
Express Editions.”
Prerequisites
Visual Studio 2008 has relatively modest hardware
requirements. Microsoft recommends a system with a
1.6GHz or faster processor, a minimum of 384MB of
RAM (768MB for Vista), as well as 2.2GB of available
hard disk storage, and a DVD-ROM drive. Visual
Studio 2008 is supported on the following OSs:
- Windows Vista (x86 and x64—except the Windows
Vista Starter Edition)
- Windows XP SP2 (x86 and x64)
- Windows Server 2003 SP1 (x86 and x64)
- Windows Server 2003 R2 (x86 and x64)
Familiar IDE
When you start Visual Studio 2008 for the first
time, it appears that not much has changed.
You’re still greeted by the familiar Start Page
with its Recent Projects, Getting Started, Visual
Studio Headlines, and MSDN: Visual Studio
panes, as Figure 1 shows. But if you look
deeper, you’ll see that much has changed—specifically
the new underlying .NET Framework
capabilities and the IDE enhancements that
support them.
NET Framework 3.5
Like all releases of Visual Studio since Visual
Studio.NET, Visual Studio 2008 comes with
a new version of the .NET Framework, NET
Framework 3.5, which has a wide array of new
features, including a new set of .NET Framework
libraries: Windows Presentation Foundation,
Windows Communication Foundation,
and Windows WorkFlow Foundation. Windows
Presentation Foundation is a .NET library that
helps you build graphical applications for Vista. Windows
Presentation Foundation supports 2D and 3D
graphics, styling, support for templates as well as the
ability to develop tablet applications using XML for
Applications (XAML). Visual Studio 2008 includes
a new graphical designer for building Windows Presentation
Foundation applications. First introduced
in .NET Framework 3.0, Windows Communication
Foundation is a communications subsystem that’s
built around the Web Services architecture. Windows
Communication Foundation uses a service-oriented
programming model, and it provides support for asynchronous
messaging, interoperability with Microsoft
Message Queue Services (MSMQ), COM, and ASP
.NET Web services. Windows WorkFlow Foundation
is a .NET Framework library that provides support
for building workflow-enabled applications. Visual
Studio 2008 provides a graphical designer for building
Windows WorkFlow Foundation applications and
integration with Windows SharePoint Services (WSS)
3.0 and Microsoft Office Sharepoint Server (MOSS)
2007. You can see the new .NET Framework 3.5 project
types for ASP.NET projects in the New Project
dialog box that Figure 2 shows.
Another great new feature in Visual Studio 2008
is the ability to target multiple versions of the .NET
Framework. Earlier VisualStudio versions were limited to building code for the current version of the
.NET runtime. Visual Studio 2008 extends this capability
by being able to target .NET Framework 2.0,
3.0, 3.5, as well as the .NET Compact Framework.
You can see the current target version of the .NET
Framework in the dropdown box near the upper left
corner of Figure 2. However, you should note that
targeting an older version of the .NET Framework
only modifies the executable files that are produced
by Visual Studio 2008. It doesn’t make your Visual
Studio 2008 project files compatible with previous
versions of Visual Studio.
LINQ
From a database developer’s perspective undoubtedly
the biggest new feature that comes with Visual Studio
2008 and the .NET Framework 3.5 is LINQ. LINQ
is an evolutionary step forward for database developers
as it simplifies the development process by enabling
developers to write database queries directly in either
native VB or C#. LINQ speeds up application development
by providing immediate feedback through IntelliSense
and compile time error checking that wasn’t
possible using the older dual-mode ADO.NET and TSQL
development methodology. For a more in-depth
look at LINQ, read the article “LINQ to Your SQL
Server Data,” InstantDoc ID 98205.
VB and C# Language
Enhancements
.NET Framework 3.5 has several enhancements that
apply to both VB and C#. To support the new LINQ
technology, Microsoft introduced implicit type and
anonymous type objects. Implicit variables can be
declared without knowing in advance what data type
the variable will be. The compiler attempts to figure
out the data type based on the values assigned to the
variable. If it can’t determine the value it will default
to object. Similar in concept to an implicitly typed
variable, an anonymous type object is an object that
can be declared without assigning it a class name. In
VB an anonymous object is created using the New
With keywords. The following example shows an
anonymous class implemented in VB:
Dim e = New With { .FirstName =
“Michael”, .LastName = “Otey” }
This example also illustrates the new object initialization
feature, which lets you assign values to object
properties when the object is created.
One of the biggest changes to VB in Visual Studio
2008 is that the language and IDE are both XMLaware.
The following example shows how you can
directly assign a VB variable an XML value and then
pull specific elements out of the XML.
Dim xml =
Michael
Otey
MsgBox(xml..Value
VB also sports a new relaxed delegates feature that
lets you declare a delegate handler such as a button
click event without needing to pass the delegate all
the original function parameters.
Continued on page 2
Prev. page  
[1]
2
next page