views:

84

answers:

1

I’m trying to upgrade our solution from VS2005 .NET 2.0 to VS2008 .NET 3.5. I converted the solution using VS2008 conversion wizard. All the projects (about 50) remained targeting to .NET Framework 2.0., moreover if I’m changing target framework manually for one of the projects, all referenced dll (i.e. System, System.Core, System.Data, etc. are still pointing to Framework 2.0. The only way to completely change targeting framework I found is to remove these references and refer them again using proper version of framework. Doing it manually is not best choice I think. 50 projects ~ 10 references each ~ 0.5 minutes for changing each reference is about 5 hours to complete. Am I missing something? Are there any other ways of converting full solution from .NET 2.0 to .NET 3.5? Thank you.

+2  A: 

The .NET 3.5 framework doesn't include new versions of the base assemblies. System, System.Data etc are still version 2.0.0.0. Only the added assemblies have versions 3.0 (like WPF and WCF) or 3.5 (like System.Core and System.Linq). The runtime version (the CLR) is also still 2.0.50727

You don't have a problem.

Hans Passant
Thank you! Much clear now. Does it mean that I still need to change Tagret Framework for each of the projects? :)
Bashir Magomedov
The only thing that Target Framework does is to prevent you from adding a reference to an assembly that's only available in a higher numbered version. You can change them as needed, it isn't critical.
Hans Passant