473,385 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

change from .NET 2.0 to .NET 3.0 version

I would like to change an applicaiton I have from .NET 2.0 target framework
to .NET 3.0 framework. Any suggestions on how to do this?
Aug 28 '07 #1
6 1814
Rich,

You shouldn't have to do anything, if I recall correctly, .NET 3.0 is
completely backwards compatable with .NET 2.0. .NET 3.0 is just the
addition of extra libraries. It still uses the 2.0 runtime.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rich Elswick" <painbank (~at~) gmail.comwrote in message
news:92**********************************@microsof t.com...
>I would like to change an applicaiton I have from .NET 2.0 target framework
to .NET 3.0 framework. Any suggestions on how to do this?

Aug 28 '07 #2
from what i understand, .net 3.0 only adds things like WPF, etc. it does not
change the framework like the upgrade from 1.1 to 2.0 did.

--
-iwdu15
Aug 28 '07 #3
sorry, I did not give enough information. Here is what I got from the Blend
newsgroup posting I put up. It should clear things up where I am having an
issue:

Well now, I downloaded and tried out the Expression Blend and created a nice
little GUI menu usercontrol, which of course uses .NET 3.0

Now I want to get it into an older .NET 2.0 project. I have C# Express
Edition setup and calling everything right or at least I believe it is right
to use it in my existing .NET 2.0 project as follows:

Menu.UserControl1 uiMenu = new Menu.UserControl1();

I just added the existing .sln file from the Blend Project to my exisiting
soluition and added the Reference to the project I want to use the Menu with.
Everything looks fine... build it and...

I get the following error where I am trying to add the Menu to the .NET 2.0
project:

Error 1 The type 'System.Windows.Controls.UserControl' is defined in an
assembly that is not referenced. You must add a reference to assembly
'PresentationFramework, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

----->

So, how do I change my existing project to point to use the .NET 3.0
framework instead of the .NET 2.0 it currently uses?

Thanks in advance.
"iwdu15" wrote:
from what i understand, .net 3.0 only adds things like WPF, etc. it does not
change the framework like the upgrade from 1.1 to 2.0 did.

--
-iwdu15
Aug 28 '07 #4
that error tells you what to do, right click on references in the sol'n
explorer and then add reference, find PresentationFramework in the .Net
section and click "ok", this should add the right assembly to your project
--
-iwdu15
Aug 28 '07 #5

"Rich Elswick" <painbank (~at~) gmail.comwrote in message
news:59**********************************@microsof t.com...
sorry, I did not give enough information. Here is what I got from the
Blend
newsgroup posting I put up. It should clear things up where I am having
an
issue:

Well now, I downloaded and tried out the Expression Blend and created a
nice
little GUI menu usercontrol, which of course uses .NET 3.0

Now I want to get it into an older .NET 2.0 project. I have C# Express
Edition setup and calling everything right or at least I believe it is
right
to use it in my existing .NET 2.0 project as follows:

Menu.UserControl1 uiMenu = new Menu.UserControl1();

I just added the existing .sln file from the Blend Project to my exisiting
soluition and added the Reference to the project I want to use the Menu
with.
Everything looks fine... build it and...

I get the following error where I am trying to add the Menu to the .NET
2.0
project:

Error 1 The type 'System.Windows.Controls.UserControl' is defined in an
assembly that is not referenced. You must add a reference to assembly
'PresentationFramework, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

----->

So, how do I change my existing project to point to use the .NET 3.0
framework instead of the .NET 2.0 it currently uses?
It's not instead of, it is in addition to.

In the "Solution Explorer" sidebar, or whatever Express edition has,
right-click on "References" and select "Add Reference". Browse to the
PresentationFramework.dll. IIRC, you need about three of these references
added and then everything will work.
Aug 28 '07 #6
That was it, done. Thanks for the help. This is what I had expected to do,
but when I went fishing (not using the Search function) for the .dll files I
couldn't find the .net libraries. ....

when I searched, I found them at:

c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\

Not quite where you might expect them to be....

I also had to add PresentationCore.dll and WindowsBase.dll as well to get it
to compile.

I still have some warnings to references, but for now I should be able to
move forward. Thanks to everyone for the help!

Rich
"Ben Voigt [C++ MVP]" wrote:
>
"Rich Elswick" <painbank (~at~) gmail.comwrote in message
news:59**********************************@microsof t.com...
sorry, I did not give enough information. Here is what I got from the
Blend
newsgroup posting I put up. It should clear things up where I am having
an
issue:

Well now, I downloaded and tried out the Expression Blend and created a
nice
little GUI menu usercontrol, which of course uses .NET 3.0

Now I want to get it into an older .NET 2.0 project. I have C# Express
Edition setup and calling everything right or at least I believe it is
right
to use it in my existing .NET 2.0 project as follows:

Menu.UserControl1 uiMenu = new Menu.UserControl1();

I just added the existing .sln file from the Blend Project to my exisiting
soluition and added the Reference to the project I want to use the Menu
with.
Everything looks fine... build it and...

I get the following error where I am trying to add the Menu to the .NET
2.0
project:

Error 1 The type 'System.Windows.Controls.UserControl' is defined in an
assembly that is not referenced. You must add a reference to assembly
'PresentationFramework, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.

----->

So, how do I change my existing project to point to use the .NET 3.0
framework instead of the .NET 2.0 it currently uses?

It's not instead of, it is in addition to.

In the "Solution Explorer" sidebar, or whatever Express edition has,
right-click on "References" and select "Add Reference". Browse to the
PresentationFramework.dll. IIRC, you need about three of these references
added and then everything will work.
Aug 29 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Name | last post by:
To those that can save me from myself: I have a site that has been working perfectly for a few years now, under PHP 4.2.3. Since later versions of PHP run so much more quickly, I wanted to...
2
by: Daniel Lidström | last post by:
Hi, I would like to know the cleanest way to change the serialization of my Line class from: <Line staStart="2327.02" length="10.00000003390744"> <End>549016.570965 57945.741122</End>...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
2
by: Joel D Kraft | last post by:
I'm using controls in my ASP.NET application from a couple of vendors. Between the vendors and thier versioning, I've set up subfolders under my bin directory: bin bin\Infragistics\v5.2...
7
by: Li Pang | last post by:
Hi I built an app of one .exe and several .dlls. I'd like to know how to force to change the version of dll everythime I rebuild the app Thank
3
by: Tom | last post by:
I am writing a Visual basic .Net database application. There are many forms that first let you select and look at a DB record and then when you click a "modify" button you are allowed to change...
2
by: Pieter | last post by:
Hi, I'm using the Settings.settings of VB.NET to define a Connectionstring (Scope = application). When I deploy the Solution, and change this Setting in the app.config-file, it seems that...
1
by: TheCornjerker | last post by:
Sorry for the cross-posting, but I thought this was a better forum to get the answer. I posted it in the Sharepoint forum as well. I've upgraded to WSS3 but I'm getting a "Server Application...
11
by: meo | last post by:
Can I select version of .NET compiler to run my ASP.NET web application? I thought I can select version of compiler by config in Web.config when I need to change between 1.0 or 1.1 But in...
11
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Master Report is: Me.RowSource = "TableOrQueryName"
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.