Re: Porting from CE to Desktop
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 2 Feb 2009 09:29:28 -0700
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
.
- References:
- Re: Porting from CE to Desktop
- From: Christopher Fairbairn [MVP]
- Re: Porting from CE to Desktop
- From: mcm
- Re: Porting from CE to Desktop
- Prev by Date: Re: Button Backcolor property not working even with SP2 installed
- Next by Date: Re: data grid is readonly
- Previous by thread: Re: Porting from CE to Desktop
- Next by thread: Re: Porting from CE to Desktop
- Index(es):
Relevant Pages
|