Framework 2.0 still used after 3.0 install

C

Chris

Hi,
In updated to .NET Framework 3.0 but projects, even new, still reference the
2.0 framework.
If I go to my ASP .Net tab in web site properties, my only options are
framework versions 1 and 2.
A reinstall of 3 tells me that it is already installed.
This is running on Windows XP Prof.
Anyone know what the problem is with this?

TIA,
Chris
 
C

Chris

I don't get it.
The first thing I went to check out was System.IO.Packaging but it was not
there...
 
S

sloan

3.0 is not a replacement, its an Addon.

2.5 would have been a better name for it.

But oh well.
 
M

Morten Wennevik [C# MVP]

Hi Chris,

..Net 3.0 is just .Net 2.0 with a few added libraries, there is nothing new
in the basic framework, and installing .Net 3.0 on a system without .Net
will result in both .Net 2.0 and 3.0 being installed. With .Net 3.0 you
get WF (Windows Workflow Foundation), WPF (Windows Presentation
Foundation) and WCF (Windows Communication Foundation).

The next upgrade of .Net Framework is actually .Net 3.5, which will be
launched with Visual Studio Orcas
 
W

WenYuan Wang

Hi Chris,

I agree with Morten and Sloan. This behavior is by design.
The .NET Framework 3.0 is an additive release to the .NET Framework 2.0.
The .NET Framework 3.0 adds four new technologies to the .NET Framework
2.0: Windows Presentation Foundation (WPF), Windows Workflow Foundation
(WF), Windows Communication Foundation (WCF), and Windows CardSpace. There
are no changes to the version of the .NET Framework 2.0 components included
in the .NET Framework 3.0. for these reason, your application will still
reference the 2.0 framework.

Additionally, this is the reason why .NET Framework 3.0 installer will
check whether you already have the .NET Framework 2.0 installed. If not,
the .NET Framework 3.0 installer will install the .NET Framework 2.0 for
you, and then install the new .NET Framework 3.0 components. If you do have
the .NET Framework 2.0 installed, the .NET Framework 3.0 installer will
only install the new components of the .NET Framework 3.0

You can get more detailed information from the following document.
http://msdn2.microsoft.com/cn/netframework/aa663314.aspx
[.NET Framework 3.0 Versioning and Deployment Q&A]

Please feel free to reply me if there is anything unclear.
Hope this helps.
Wen Yuan
 
G

Guest

I got a message during install that regedit had to install the Windows
Workflow Foundation 3.0.0.0. I wonder if that service is legit. I'm guessing
yes, but I'd like to know what it is there for under XPSP2.
 
C

Chris

I understand what everyone is saying, but the MS Launch Tour presentation
showed that we would use the System.IO.Packaging class to work with the new
Office 2007 formats. They said it is part of framework 3.0.
Now I have installed framework 3.0, I cant find the Packaging class and it
seems most of the links pertaining to framework 3.0 on the MS website are
dead end links.

Do I need to add another reference to my project to make use of 3.0
features?
Chris
 
C

Chris

The link is broken and it seems that most of the MS links that relate to
framework 3.0 are also broken.
I replied to one of the other posts asking how I would access the Packaging
class so that I could work with Office 2007 document.

I still don't now how to access anything that
 
M

Mark Carey

The link is broken and it seems that most of the MS links that relate to
framework 3.0 are also broken.
I replied to one of the other posts asking how I would access the Packaging
class so that I could work with Office 2007 document.

I still don't now how to access anything that

You can access Packaging after you install the Windows SDK for .NET
3.0 and then the VS extensions for .NET 3.0 (there are two packages to
install).

Then you can either create a new .NET 3.0 project or you can add a
reference to WindowsBase.

Now when you add your using declarations System.IO.Packaging is an
option.
 
M

Morten Wennevik [C# MVP]

Well,

You need to run Windows SDK Setup to add .Net 3.0 documentations

http://www.microsoft.com/downloads/...00-f358-4523-b479-f53d234cdccf&DisplayLang=en

Then run the Windows Workflow Foundation extensions for Visual Studio 2005

http://www.microsoft.com/downloads/...9E-1FA3-48CF-8023-E8F38E709BA6&displayLang=en

And Windows Presentation Foundation and Windows Communication Foundation
extensions (CTP Nov 2006)

http://www.microsoft.com/downloads/...37-CC86-4BF5-AE44-F5A1E805680D&displaylang=en

Inside your project add a reference to WindowsBase
You should then be able to add using System.IO.Packaging.

Good Luck! There may be shorter and easier ways, but this worked for me
using Visual Studio 2005 on Windows XP. MSDN docs were also updated in
the process.



I understand what everyone is saying, but the MS Launch Tour presentation
showed that we would use the System.IO.Packaging class to work with the
new
Office 2007 formats. They said it is part of framework 3.0.
Now I have installed framework 3.0, I cant find the Packaging class and
it
seems most of the links pertaining to framework 3.0 on the MS website are
dead end links.

Do I need to add another reference to my project to make use of 3.0
features?
Chris
 
W

WenYuan Wang

Hi Chris,
Thanks for your reply.

I'm sorry it seems like there are some issue with MSDN website now.
I agree with Mark. Please add a reference to WindowsBase.dll, after that
you can use the System.IO.Packaging namespace.

"WindowsBase.dll" is located in c:\Program Files\Reference
Assemblies\Microsoft\Framework\v3.0
Additionally, In Beta 2, you can find it in c:\Program Files\Reference
Assemblies\Microsoft\WinFx\v3.0.
If there is anything unclear, please feel free to let me know. I'm glad to
assist you.

Hope this will helps.
Best regards,
Wen Yuan
 
W

WenYuan Wang

Hi Cris,
Thanks for Mark's reply.

Just want to check if you have any further question or concern.
Please feel free to reply me and we will follow up. I'm very glad to work
with you.

Have a great day!
Best regards,
Wen Yuan
 

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