Prev | Current Page 84 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

NET. You used
Visual Studio .NET to create .NET 1.0 applications, Visual Studio .NET 2003 to create .NET 1.1
applications, and Visual Studio 2005 to create .NET 2.0 applications. Visual Studio 2008 partially
removes this restriction. It allows you to create applications that are specifically designed
to work with .NET 2.0, .NET 3.0, or .NET 3.5.
Although it??™s obviously not possible to create a WPF application with .NET 2.0, both
.NET 3.0 and .NET 3.5 have WPF support. You may choose to target .NET 3.0 for slightly
broader compatibility (because .NET 3.0 applications can run on both the .NET 3.0 and
.NET 3.5 runtimes). Or, you may choose to target .NET 3.5 to get access to newer features in
WPF or in the .NET platform itself. (One common reason for targeting .NET 3.5 is to support
LINQ, the set of technologies that allow .NET languages to access different data sources using
a tightly integrated query syntax.)
When you create a new project in Visual Studio (by choosing File ??° New ??° Project), you
can choose the version of the .NET Framework that you??™re targeting from a drop-down list in
the top-right corner of the New Project dialog box (see Figure 1-2). You can also change the
version you??™re targeting at any point afterward. Just double-click the My Project node in the
Solution Explorer, choose the Compile tab, click the Advanced Compile Options button, and
change the selection in the Target Framework list.


Pages:
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96