views:

38

answers:

1

Hi, Can I run applications compiled with .net framework 3.5 on a computer with .net framework 4 installed (.net framework 3.5 is not installed)? Thanks

+3  A: 

Yes you can. The CLR 4.0 is backwards compatible with assemblies compiled against .NET 3.5.

Darin Dimitrov
Does that imply the the same for 3.0?
jdv
Yes, same for .NET 2.0. Not sure about .NET 1.0 and 1.1 though but who cares about them anyways :-)
Darin Dimitrov
But when I'm trying to do so, it crash (It says that it can't load the assembly ...servicemodel.... version 3.0)...
Mattan
Do you know what can be the problem?
Mattan
When you migrate the project in Visual Studio 2010 it should automatically change the reference of the BCL assemblies to 4.0. It seems this is not the case. You might need to change the references.
Darin Dimitrov
Oops... Enter sends the question... If the application was compiled with vs 2008 (and hence using .net 3.5), can I run it on .net 4 computer?
Mattan