Solved

how to switch frameworks

Posted on 2008-10-06
6
198 Views
Last Modified: 2013-11-08
I am attempting to utilize WPF.  To do so, I need to use at the very least .net framework 3.0.  I have both 2.0, 3.0 and the 3.5 frameworks installed my my local machine.

I began a new project in visual studio 2005.  How do I ensure that either the framework of my choice is being used?  When I go to the references tab, it looks like it is utilizing .net framework 2.0 for all of its code libraries.
0
Comment
Question by:dchau12
  • 3
  • 3
6 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 22653584
this is correct. the core librairies of the .net framework remains version 2.0 (and even with the .Net framework of Visual Studio 2008)
0
 

Author Comment

by:dchau12
ID: 22653743
does the framework automatically default to the latest framework?  Like, .net framework 3.0 is installed on my pc, and that framework is used for vs 2005.  When that version is installed, does it automatically pick it up?
0
 

Author Comment

by:dchau12
ID: 22653913
let me reqord that.  Does visual studio automatically default to the latest framework?
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 22653940
there is one thing that you really need to understand: the .net framework 3.0 CANNOT exist/run/live without the .net framework 2.0.

the .net framework 2.0 is the core while the .net framework 3.0 are some extensions to the core (WCF, WPF, WF, Cardspace).

VS2005 always use the .net framework 2.0 and if you add one of the 4 extensions, it will add the required dlls (that are 3.0) to the references but you will always keep the 2.0 core files.

This is also true for the .net framework 3.5. The core files are still .net framework 2.0.
0
 

Author Comment

by:dchau12
ID: 22654029
ok.... awesome... now I am really getting to what I need.

I have the 3.0 framework installed, and I want to use the WPF extension.  But, I do not believe that vs2005 is using the 3.0 framework because when I start a new project, WPF is not included in the list of project templates.  How do I get it in there?

0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 22654172
if you are serious about WPF, you should really switch to 3.5 (VS2008) as it was greatly enhanced.

I think you can still can the DLLs from http://www.microsoft.com/downloads/details.aspx?FamilyID=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET 2008 Publish Error 2 34
bound data table problem 2 33
Code enhancement 4 22
How can I do Unit Testing with Session ? 1 11
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question