views:

7178

answers:

5

There are some really great features in .NET 4.0 that I would like to start using but I am not comfortable making the change to VS 2010 just yet. Is there a way to use the .NET 4.0 beta in VS 2008?

+4  A: 

I don't think there is - the IDE is usually tied to a particular version of the framework, and 2008 has been the first version to allow you to target a "non-native" (so to speak) version of the framework, instead of just the matching version.

While Microsoft might add support later, I wouldn't expect them to, though I would expect 2010 to be able to target different versions aside from 4.0 (I haven't used it, so it may do this and I don't know it). Update: According to this, 2010 targets 2, 3, 3.5, and 4.

To target 4.0, you'll have to use 2010 - at least for now, and probably indefinitely.

rwmnau
Adding .NET 4.0 support to Visual Studio 2008 is a costly operation. Besides this, Microsoft wants us to buy Visual Studio 2010. Two reasons why Microsoft will not add .NET 4.0 support to Visual Studio 2008.
Steven
+5  A: 

no, this is not possible, .NET 4.0 requires VS 2010 to be able to target/build.

Mitchel Sellers
+3  A: 

Some of new stuff that will be shipped with 4.0 were released as "extensions" and "CTPs", for example Parallels Extensions for .NET 3.5 will eventually be included in 4.0 but you can start playing with it now in VS 2008.

zvolkov
By all means try it out, but be aware there are some significant differences in the way things work between the parallel extensions for 3.5 and the task parallel library in 4.0.
Simon P Stevens
@Simon P Stevens Thanks, can you give an example?
zvolkov
A: 

AS the people here already said, no.

But if you want to check out some of .net 4 features you could download the already aging Parallel Exetnsions CTP and try it out with Visual Studio 2008.

It not much...

ArielBH
+1  A: 

No, VS 2008 Multi Targeting option only support .NetFramework 3.5 , 3.0 , 2.0

so it has a Backward Compatability, So You have to Use VS 2010 for .netFramework 4.0

Nasser Hadjloo