Use 2.0 assembly in 3.5 project?

P

Pieter

Hi,

We would liek to start using .NET Framework 3.5, and migrate some of our
projects. Although: some of them will stay for a while on .NET 2.0. The
problem is: some projects will be referenced in a 3.5 and in a 2.0 project.
Will this work? And if yes: do we have to do anything special?

For instance:
- Project A = 2.0
- Solution B = 2.0
- Solution C = 3.5
-> Project A is referenced in Solution B and in Solution C.

Thanks a lot in advance,


Pieter
 
C

Cowboy \(Gregory A. Beamer\)

In most cases there is no problem, as 3.5 sits on top of 2.0. If you have a
problem, wrap the 2.0 bits in a service call of some sort. A bit of
overhead, but saves you from upgrade right now.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
 
S

Steven Cheng

Hi Rafia,

As other guys has explained, you can run .NET 2.0 application in a .NET 3.5
environment without problems. This is because .NET 3.5(also .NET 3.0) is
built upon .NET 2.0, it rely on the .NET 2.0 clr engine and most
fundamental class library. In my opinion, .NET 3.0 and 3.5 is more like
some advanced pack on the .NET framework 2.0 which add more features(such
as the W*F in .NET 3.0 and the LINQ, AJAX in .NET 3.5)

For development consideration, the VS 2008 IDE support multi-target
projects(from .NET 2.0, .NET 30 to .NET 3.5). Therefore, you can develop
applications target different version of .NET framework.

#VS 2008 Multi-Targeting Support
http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-su
pport.aspx

http://blogs.msdn.com/dajung/archive/2008/03/17/vs2008-and-multi-target-fram
eworks.aspx


In addition, you can read the following articles about more explanation on
the .NET 2.0 and .NET 3.X versioning:

http://blogs.msdn.com/zxue/archive/2008/01/02/how-is-the-net-framework-3-5-d
ifferent-from-net-2-0-and-net-3-0.aspx

http://blogs.msdn.com/johnmullinax/archive/2008/01/09/what-is-the-value-of-n
et-3-5-vs-net-2-0-well-that-depends-on-you.aspx

If you have any further specific questions, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we

can improve the support we provide to you. Please feel free to let my
manager know what you think of

the level of service provided. You can send feedback directly to my manager
at: (e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top