Solved

how to switch frameworks

Posted on 2008-10-06
6
193 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 69

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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 69

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 69

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now