George2

Hello everyone,


I am using Visual Studio 2005 and have some code built by both .Net Framework 2.0 and .Net Compact Framework 2.0 (two separate builds).

I want to build and test the code in both .Net Framework 3.0 and .Net Compact Framework 3.0. I can not find any guide about how to setup environment in Visual Studio 2005 to utilize .Net Framework 3.0 and .Net Compact Framework 3.0 to make builds, and setup both .Net Framework 3.0 and .Net Compact Framework 3.0 environment to test the code (new build).

Maybe it is because .Net 3.0 is too new Any tutorials to recommend


thanks in advance,
George



Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

Greg Beech

The name .NET 3.0 is a bit of a strange marketing gimmick. It actually uses the .NET 2.0 runtime, and the "3.0" bits are the addition of WCF, WPF, WF and CardSpace around the edges of the framework, though the core libraries do not change. The upshot of this is that if your assemblies are built against .NET 2.0, they are also built against .NET 3.0 - just not using the new bits!

That said - .NET 3.0 will patch the .NET 2.0 core libraries with an updated version that has some minor fixes (the .build part of the version number changes to indicate compatibility). The compatibility isn't quite true, so once you have installed .NET 3.0 you should re-check all of your tests.






Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

George2

Thanks Greg,

Greg Beech wrote:

The name .NET 3.0 is a bit of a strange marketing gimmick. It actually uses the .NET 2.0 runtime, and the "3.0" bits are the addition of WCF, WPF, WF and CardSpace around the edges of the framework, though the core libraries do not change. The upshot of this is that if your assemblies are built against .NET 2.0, they are also built against .NET 3.0 - just not using the new bits!

That said - .NET 3.0 will patch the .NET 2.0 core libraries with an updated version that has some minor fixes (the .build part of the version number changes to indicate compatibility). The compatibility isn't quite true, so once you have installed .NET 3.0 you should re-check all of your tests.

Two more questions,

1. Must I use .Net 3.0 in Windows Vista Could I use it in Windows XP

2. Do you have any detailed tutorials about how to make build and test in Visual Studio 2005 with .Net 3.0

regards,

George





Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

Greg Beech

1. You can use the .NET 3.0 components anywhere it's installed, which can include Windows XP (in fact one of my development machines runs Windows XP with the .NET 3.0 components installed).

2. You'll need to download and install the VS2005 extensions for .NET 3.0. There are some WCF and WPF ones, and a WF one. Once these are installed you can use all the .NET 3.0 facilities, but everything else including building and testing is exactly the same as with 2.0.






Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

Peter Ritchie

That's turning out to not be entirely true. See the thread Vista framework version incompatible with XP version that details some of the different 2.0 bits that have been updated under the guise of 3.0 updates (only recently updated on anything other than Vista...). SendKeys.Send, for example, is documented as "The SendKeys class has been updated for the .NET Framework 3.0 to enable its use in applications that run on Windows Vista".

.NET 3.0 is really added functionality (the .NET 3.0 classes) and a service pack to .NET 2.0.






Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

Greg Beech

Peter Ritchie wrote:
That's turning out to not be entirely true.

Yeah I know... don't make me add a Nitpickers Corner. My assumption is that if people don't know even the fundamental differences between .NET 2.0 and 3.0 then they're unlikely to care about the minor* ones.

Nitpickers Corner:

* yes if they affect you then I'm sure you don't see them as minor. That's fine. But it's not that relevant to the original question for the reasons I just stated.

Oh now look what you made me do!






Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

George2

Hi Peter,

Peter Ritchie wrote:

That's turning out to not be entirely true. See the thread Vista framework version incompatible with XP version that details some of the different 2.0 bits that have been updated under the guise of 3.0 updates (only recently updated on anything other than Vista...). SendKeys.Send, for example, is documented as "The SendKeys class has been updated for the .NET Framework 3.0 to enable its use in applications that run on Windows Vista".

.NET 3.0 is really added functionality (the .NET 3.0 classes) and a service pack to .NET 2.0.

Do you mean beyond the 3 new features of .NET 3.0 (e.g. workflow), the core components are still different between 2.0 and 3.0 (your example, SendKeys.Send)

regards,

George





Re: Visual C# General migrate from .Net 2.0 to .Net 3.0

Peter Ritchie

The documentation for .NET 3.0 detailed some changes to some .NET 2.0 classes. Those changes were deployed with .NET 3.0 for Vista; but not on any other version of Windows until the July 10th security update.