Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / Platform Builder / October 2008

Tip: Looking for answers? Try searching our database.

Adding both .NET 2.0 and 3.5

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
B - 06 Oct 2008 15:49 GMT
I am not able to run .NET CF application if I add both .NET 2.0 and .NET 3.5
to my CE5.0 x86 platform.  If  I only add either of them there is no
problem!
Visual Studio 2005 and 2008 displays following messages when I try to run a
CF2.0 application in debug mode:

"This application requires a newer version of the Microsoft® .NET Compact
Framework than the version installed on this device."

NETCFCFG.exe displays following version numbers on my platform:

If  I add only .NET 2.0 ==> 2.0.7045.0 (ROM)

If  I add only .NET 3.5 ==> 3.5.7338.0 (ROM)

If I add both:
2.0.7045.0
3.5.7338.0 (ROM)

I have added all CE updates that are available.

It looks like that if I have only .NET 3.5 then I am able to execute both
2.0 and 3.5 programs in debug mode using VS2008.  However I am not able to
use VS2005 for .NET 2.0 applications.

What can I do to have both .NET CF´s working on my platform for both VS2005
and VS2008.

Tanks
Ingibergur/Beggi
Paul G. Tobey [eMVP] - 06 Oct 2008 18:10 GMT
You don't want to add both. There's no reason to have them both and they
don't work when you try to do that.  If you need to run .NET CF 3.5
applications, then add .NET CF 3.5 and live with it.  You'll still be
perfectly able to run .NET CF 2.0 applications on the device...  However, as
you've found, you can't DEBUG from VS2005 (because the version of the
framework on the device is .NET CF 3.5 and VS2005 doesn't know about that).
That's just the way it is.

Paul T.

>I am not able to run .NET CF application if I add both .NET 2.0 and .NET
>3.5 to my CE5.0 x86 platform.  If  I only add either of them there is no
[quoted text clipped - 26 lines]
> Tanks
> Ingibergur/Beggi
Luca Calligaris - 07 Oct 2008 07:02 GMT
Just to put my two cents: Platform Builder should not allow the developer to
choose both
of them since doing so some files of one version of .NET CF will overwrite
those of the other
version, mixing (and messing) up everyting. In Windows CE 5.0 you could not
add both .NET CF 1.1 and
.NET CF 2.0

Signature

Luca Calligaris
www.eurotech.it

> You don't want to add both. There's no reason to have them both and they
> don't work when you try to do that.  If you need to run .NET CF 3.5
[quoted text clipped - 36 lines]
>> Tanks
>> Ingibergur/Beggi
Ingibergur/Beggi - 07 Oct 2008 08:34 GMT
Thank you both for your answers.

There are so many different meanings out there When .NET 2.0 arrived I was
adviced by this group just add .NET 2.0 and keep 1.0 and nobody had an
objection.  However I did not follow this advice until now.

Also everyting points to that direction that these versions are able to live
together:

- They live to gether on a PC
- Platform manager allows all versions to be added
- NETCFCFG is able to display all the .NET versions at same time.
- I have not been able to find description on MSDN that they do not.
- etc etc.

It would have been a lot easier if Microsoft had written a small message
together with the .NET 3.5 that it can not live together with .NET 2.0

Thanks again.

Also if you read the documentation that follow the *.msi (installable)
version of 3.5.  Here
> Just to put my two cents: Platform Builder should not allow the developer
> to choose both
[quoted text clipped - 44 lines]
>>> Tanks
>>> Ingibergur/Beggi
Paul G. Tobey [eMVP] - 07 Oct 2008 16:21 GMT
> Thank you both for your answers.
>
[quoted text clipped - 6 lines]
>
> - They live to gether on a PC

Irrelevant.  .NET Compact Framework is nothing like .NET Framework.  Not the
same code, not the same run-time.  Nothing.  Drawing conclusions about any
aspect of Windows CE from how XP or Vista works is guaranteed to lead to bad
guesses.

> - I have not been able to find description on MSDN that they do not.

If you find a suitable page where it could be described, use the Send
Feedback link on that page and tell them to do that.  They will do it.

> It would have been a lot easier if Microsoft had written a small message
> together with the .NET 3.5 that it can not live together with .NET 2.0

I'm sure they never tested it.  You can install a later version over the top
of an earlier version in the filesystem and the right things will happen.
This is not so easy to achieve when you're building a bunch of different
versions of things into the OS, each of which should be independent.  Yes,
they screwed up by not completely replacing all of the .NET CF 2.0
components with .NET CF 3.5 components when you add that from the catalog,
but it's not so easy to do that in the other order.  If .NET CF 3.5 is
installed and you add .NET CF 2.0, it doesn't know about 3.5, unless the QFE
that installs 3.5 also modifies a bunch of 2.0's build files, etc.  It
should be in the help, though.

Paul T.
Chris Tacke, MVP - 08 Oct 2008 13:07 GMT
They *can* coexist on a device.  PB just can't deploy both to the same image
and as Paul pointed out, there's no reason to ship both on a device anyway.

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

> Thank you both for your answers.
>
[quoted text clipped - 66 lines]
>>>> Tanks
>>>> Ingibergur/Beggi
Ingibergur/Beggi - 08 Oct 2008 15:03 GMT
I can think of at least one reason why I want to ship both versions.
Giving my customers opportunity to choose between VS2005 and VS2008.  Not
everybody wants to change compiler everytime there is a new version with
lots of new "smart" features.

And to me, as PB can not deploy them both correctly to the same image, then
they can not coexist and that should be documented by Microsoft.

Beggi

> They *can* coexist on a device.  PB just can't deploy both to the same
> image and as Paul pointed out, there's no reason to ship both on a device
> anyway.
Luca Calligaris - 08 Oct 2008 15:14 GMT
include only .NET CF 2.0 in your image; if someone wants to install .NET CF
3.5 s/he can download the
CAB files from MS site

Signature

Luca Calligaris
www.eurotech.it

>I can think of at least one reason why I want to ship both versions. Giving
>my customers opportunity to choose between VS2005 and VS2008.  Not
[quoted text clipped - 9 lines]
>> image and as Paul pointed out, there's no reason to ship both on a device
>> anyway.
Ingibergur/Beggi - 08 Oct 2008 15:29 GMT
The Windows folder on my device is RAM based.  I have a "\Hard Disk" folder
that is flash.  I wonder if the CAB file can install it self in the \Hard
Disk folder or will it install in the Windows folder?  In other words, is it
possible to choose a folder where it is installed.

Beggi

> include only .NET CF 2.0 in your image; if someone wants to install .NET
> CF 3.5 s/he can download the
> CAB files from MS site
Luca Calligaris - 08 Oct 2008 15:37 GMT
Yes you can choose where to install the package

Signature

Luca Calligaris
www.eurotech.it

> The Windows folder on my device is RAM based.  I have a "\Hard Disk"
> folder that is flash.  I wonder if the CAB file can install it self in the
[quoted text clipped - 6 lines]
>> CF 3.5 s/he can download the
>> CAB files from MS site
 
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.