Re: Porting from CE to Desktop

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can't do some sort of a switch in VS to debug on a different class of
targets. And, for that matter, it wouldn't be valuable. If the code fails
on the .NET CF, it's just as likely to work fine, or at least differently,
when run against the .NET Framework. If you build a new project to target
the desktop framework and add your existing source code to that new project,
you can run/debug it on the desktop with full Framework support, of course.

Paul T.

"mcm" <mcmalburg@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:uc4pnvUhJHA.1172@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Christopher,

I'll read the article - looks helpful at first glance.

Do you know if this provides debug capabilities across both platforms?
As far as I've seen; once you chose a mobile platform, Studio 2008
doesn't (intutively) show you a place to switch to a desktop platform for
debugging.


- Mark


Hi Mark,

"mcm" <mcmalburg@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:eKo1fS7gJHA.5540@xxxxxxxxxxxxxxxxxxxxxxx
What is my best (i.e. quickest and easiest) approach for gettting this
thing running on my desktop?
Ideally, I'd like the CE and desktop apps to run from the same code base
so that revisions will apply to both platforms.

Assuming you are not referencing any Windows CE or .NET Compact Framework
specific assemblies you should be able to run your .NET CF build on your
desktop without modification.

The .NET CF target builds your assemblies with the retargetable
(http://msdn.microsoft.com/en-us/library/system.reflection.assemblynameflags.aspx)
flag which enables the compiled assemblies to run against the desktop
version of the base class libraries.

It's worth a short - just go into the output directory and double click on
the main executable. However in my experience although this is possible
most
applications will still need some platform specific "spit and polish" to
get
them working 100%.

Daniel Moth's "Write Code Once For Both Mobile and Desktop Apps" article
available on MSDN Magazine at
http://msdn.microsoft.com/en-us/magazine/cc163387.aspx may have some
additional information that will help with this.

Hope this helps,
Christopher Fairbairn




.



Relevant Pages

  • Re: PB Debugger The Kernel Debugger is waiting to connect with tar
    ... The target platform is Ampro_620 with both serial and ethernet support. ... and yes Im quite sure i want to DEBUG the OS ... "PB Debugger The Kernel Debugger is waiting to connect with target." ...
    (microsoft.public.windowsce.platbuilder)
  • Re: A debugging implementation of malloc
    ... If you know a little about the target ... platform, you can even choose particularly good garbage. ... on x86 that is a "debug trap" instruction when executed and it's ...
    (comp.lang.c)
  • Re: debug *.framework
    ... How can i degub .framework using XCode? ... Plz. ... send me steps to debug. ... Add a new target to your project that makes an application that includes ...
    (comp.sys.mac.programmer.help)
  • Re: Information on migration of DMS2200 to relational databases
    ... application infrastructure is available on the possible target ... DML for DMS 2200 access and currency are very important as the ... Make sure every function including paging support, line I/O, ... Staying on the existing platform is always an option, ...
    (comp.sys.unisys)
  • Re: MSBuild file for .Net 1.0, 1.1, 2.0, Compact Framework 1.0 & 2.0 and Mono
    ... I'm currently working in a library that has to target both .Net 2.0 and .Net ... But nothing to target Compact Framework ... The existing Any CPU platform remains, and if you build with that platform ... you can override the platform names before including ...
    (microsoft.public.vstudio.development)