Multitargeting

Like in Visual Studio 2008, in Visual Studio 2010 you can choose what version of the .NET Framework your application targets. This can be useful if you plan to develop applications with a high compatibility level and without new language features, but you still want to take the advantage of the new features of the IDE. You may choose one of the following:

• .NET Framework 4.0 (proposed by default)

• .NET Framework 3.5

• .NET Framework 3.0

• .NET Framework 2.0

To accomplish this choice, just select the appropriate version from the combo box at the top of the window, as shown in Figure 2.6.

Figure 2.6 Choosing the .NET Framework version for your application.

image

Note

Please remember that, depending on what version of the .NET Framework you choose, you may not be able to use some libraries or technologies. For example, if you choose .NET Framework 3.0 as the target version, you cannot use LINQ, which is instead exposed by .NET Framework 3.5 and higher. So keep in mind these limitations when developing your applications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.121.153