Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2007

Tip: Looking for answers? Try searching our database.

change from .NET 2.0 to .NET 3.0 version

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich Elswick - 28 Aug 2007 19:18 GMT
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?
Nicholas Paldino [.NET/C# MVP] - 28 Aug 2007 19:31 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.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?
iwdu15 - 28 Aug 2007 19:44 GMT
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.

Signature

-iwdu15

Rich Elswick - 28 Aug 2007 20:44 GMT
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.

> 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 - 28 Aug 2007 21:36 GMT
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
Signature

-iwdu15

Ben Voigt [C++ MVP] - 28 Aug 2007 21:43 GMT
> sorry, I did not give enough information.  Here is what I got from the
> Blend
[quoted text clipped - 31 lines]
> 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.
Rich Elswick - 29 Aug 2007 18:28 GMT
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

> > sorry, I did not give enough information.  Here is what I got from the
> > Blend
[quoted text clipped - 38 lines]
> PresentationFramework.dll.  IIRC, you need about three of these references
> added and then everything will work.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.