[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Will my .NET 2.0 app work under .NET Framework 3.0 and 3.5?

Posted on 2007-11-27
16
Medium Priority
?
598 Views
Last Modified: 2013-12-16
Hi,

I'm wondering if my .NET 2.0 app will work under .NET Framework 3.0 and 3.5 without having to install .NET Framework version 2.0.
0
Comment
Question by:EEssam
[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
  • 4
  • 3
  • +1
16 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20359548
no, it won't
You can recompile to fx3.0 or 3.5 and make some changes, or you have to install 2.0.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20359554
BTW, VS deployment options allows you to generate an installer with .net framework included.
0
 
LVL 7

Expert Comment

by:prosh0t
ID: 20359745
I haven't tried it, but you might try downloading visual studio C# express 2008 and have it automatically convert your code.  (It's FREE by the way.. yes I know it's hard to believe but it's a limited version of visual studio).  Usualy VS can easily import old .net code into the new version and then you can compile it there and have a 3.5 .exe.  The only question would be if the free version allowed for the conversion.  here's the link:

http://www.microsoft.com/express/download/
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20359838
>>but you might try downloading visual studio C# express 2008 and have it automatically convert your code
This will convert the solution, it won't change the framework version.

But you can create a new 3.0 project/solution, and attach your source files.
0
 
LVL 7

Expert Comment

by:prosh0t
ID: 20359850
If you recompile it will change the framework version
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20359894
>>If you recompile it will change the framework version
AS you said, you have never tried. If you load and recompile a 2.0 project in VS 2008 you will have a 2.0 executable!!!
0
 
LVL 7

Expert Comment

by:prosh0t
ID: 20359942
I've done it from 1.1 to 2.0 plenty of times.  VS converts the solution, I recompile, vioala, I have a 2.0 .exe with no code changes.  Did Microsoft take that functionality out of vs 2008 when vs 2005 did it fine?


0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20360007
you are just assuming.
VS2005 suports just .net framework 2.0 and 3.0, not 1.x, that why it migrates
VS2008 support .net framework 2.0, 3.0 and 3.5, there is not reason to migrate
0
 
LVL 8

Expert Comment

by:slado2
ID: 20360008
You don't have to recompile it. .NET 3.0 and 3.5 are based on .NET 2.0 and are fully backward compatible. NET 3.5 = new features + .NET 3.0 = WPF + WCF + .NET 2.0
It is different than .NET 1.0 (or 1.1) and 2.0 - those were really different frameworks with different libraries.
NET 3.0 and 3.5 are just add-on to .NET 2.0.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20360040
The question:
I'm wondering if my .NET 2.0 app will work under .NET Framework 3.0 and 3.5 without having to install .NET Framework version 2.0.
Answer:
NO

About migrating, to produce a 3.x executable you have to recompile, there is not a magic convertion.
Before recompiling, there would be minimal or no change at all in source code, but YOU HAVE TO RECOMPILE!!!
0
 
LVL 7

Expert Comment

by:prosh0t
ID: 20360042
k, I concede.  I didn't know each version of VS supported multiple frameworks.  Just curious.. how do you specify which framework you are using when you create a new project in VS 2005?  Lets say I wanted to create a 3.0 app instead of 2.0 (which it does by default for me).
0
 
LVL 8

Expert Comment

by:slado2
ID: 20360070
You can't install .NET 3.0 or 3.5 without having .NET 2.0 installed too.
VS 2005 supports creating only .NET 2.0 applications. (.NET 3.0 is supported via addons)
VS 2008 supports .NET 2.0, 3.0 and 3.5.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20360085
when you create a new project in VS2008, you are asked about the framework version.
0
 

Author Comment

by:EEssam
ID: 20360454
slado2 says: You can't install .NET 3.0 or 3.5 without having .NET 2.0 installed too. Which means: my .NET 2.0 app work under .NET Framework 3.0 and 3.5.

I'm lost.
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20360551
no, your application just run with 2.0, even if 3.x is installed
0
 
LVL 8

Accepted Solution

by:
slado2 earned 2000 total points
ID: 20363771
Assume you have plain computer with just windows installed.
1. Download NET Framework 3.5 Redistributable from http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe
2. Install it
3. .NET 2.0, .NET 3.0 and .NET 3.5 will be installed (you may check it in c:\windows\microsoft.net\framework

NET 3.5 and 3.0 are NOT standalone products. Just add-ons to NET 2.0.



0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

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…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

650 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