Solved

Change framework 2.0 to 3.5 or higher

Posted on 2010-09-23
8
822 Views
Last Modified: 2012-08-13
Hello all,

I'm working with VB.Net 2005 and I think i'm using framework 2.0.

I need to use the following line: Imports System.Windows.Media

This give me the a error:
Namespace or type specified in the Imports 'System.Windows.Media' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

I think this is because I need to use framework 3.5 or higher.

How can I change my project to use 3.5 or higher?

Thanks in advance
Arno
0
Comment
Question by:thecookiecompany
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 53

Expert Comment

by:Dhaest
ID: 33743674
If you had vs2008, you could easily target .net 3.5 but with vs2005 it's not possible

http://geekswithblogs.net/cyoung/archive/2007/12/01/117279.aspx
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 200 total points
ID: 33743682
VS 2005 was specifically targeted towards the .NET 2.0 framework but could be enhanced by some upgrades to .NET 3.0. For 3.5 however you need VS2008 in which you have the possibility of multitargeting towards 2.0, 3.0 or 3.5.
0
 
LVL 1

Author Comment

by:thecookiecompany
ID: 33743920
Thanks Dhaest

Is this only possible in vb.net 2008 or is it also possible in vb.net 2010?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 10

Expert Comment

by:Umar Topia
ID: 33743944
You can import the dll System.Windows.Media of v3.5 in your 2.0 project
0
 
LVL 1

Author Comment

by:thecookiecompany
ID: 33745104
Hello umartopia,

Can you tell me how to do this. Where can i find the dll.
0
 
LVL 12

Expert Comment

by:Mohamed Abowarda
ID: 33751971
I recommend you to upgrade your project to VS.NET 2008 or 2010 and then change the framework to 3.5 or higher.
0
 
LVL 5

Accepted Solution

by:
andr_gin earned 300 total points
ID: 33752192
1.)
Here is a list of supported versions of .NET Framework:

VS 2003: Only .NET 1.1
VS 2005: Only .NET 2.0
VS 2008: .NET 3.5 is standard, but it is also possible to target 2.0 or 3.0
VS 2010: .NET 4.0 is standard, but it is also possible to target 2.0, 3.0 or 3.5

Please also consider that installing .NET framework 3.5 may take a while and will not be possible on Windows 2000, while .NET 2.0 does not take long and is installed on most computers. Only Windows 7 has .NET 3.5 preinstalled. The .NET 3.5 offline installer is also about 200MB big, so this may cause serious deployment problems. I am not sure if all the WPF stuff is worth all the troubles.

I suggest that you only target 3.5 if you really need to.

2.)
System.Windows.Media needs at least .NET framework 3.0, but there may be classes in this namespace that need .NET 3.5.
0
 
LVL 1

Author Closing Comment

by:thecookiecompany
ID: 33753205
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with converting xml file to excel using VB.NET 3 31
MailAddress in vb 4 36
Need syntax help building hyperlink 2 42
Create a button class for use in all vb.net apps 5 19
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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