MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to create cross-platform class libraries?

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> Compact Framework
Author Message
Norbert Unterberg



Joined: 12 Aug 2007
Posts: 24

PostPosted: Mon Feb 04, 2008 4:27 pm    Post subject: How to create cross-platform class libraries? Reply with quote

We have a C# project for a PDA (Windows Mobile 5.0 Pcoekt PC, using
VS2008) where we create some utiity classes that should be used both for
the PDA and for the "real" Windows XP platform.
Currently, we create a C# smart device class library project. When
building a PC application, we just reference the PDA class library.
Visual studio warns about possible unexpeced results but allows us to do
it, and the resulting application does work.

My questions: What are the risks and the drawbacks? What is the correct
way? We have not found a way to set different target platforms as build
configuration. The only other solution we found is to create a second
project and import the same set of soure files, but there should be a
better way, shouldn't it?

One drawback we found is that VS does not allow to create PC bases unit
tests for the pocket pc class library.

Any ideas and suggestions?
Norbert

Archived from group: microsoft>public>dotnet>framework>compactframework
Back to top
View user's profile Send private message
Daniel Moth



Joined: 08 Aug 2007
Posts: 11

PostPosted: Mon Feb 04, 2008 6:40 pm    Post subject: Re: How to create cross-platform class libraries? Reply with quote

http://msdn.microsoft.com/msdnmag/issues/07/07/ShareCode/default.aspx

HTH

Cheers
Daniel
--
http://www.danielmoth.com/Blog

"Norbert Unterberg" wrote in message @TK2MSFTNGP02.phx.gbl...
> We have a C# project for a PDA (Windows Mobile 5.0 Pcoekt PC, using
> VS2008) where we create some utiity classes that should be used both for
> the PDA and for the "real" Windows XP platform.
> Currently, we create a C# smart device class library project. When
> building a PC application, we just reference the PDA class library. Visual
> studio warns about possible unexpeced results but allows us to do it, and
> the resulting application does work.
>
> My questions: What are the risks and the drawbacks? What is the correct
> way? We have not found a way to set different target platforms as build
> configuration. The only other solution we found is to create a second
> project and import the same set of soure files, but there should be a
> better way, shouldn't it?
>
> One drawback we found is that VS does not allow to create PC bases unit
> tests for the pocket pc class library.
>
> Any ideas and suggestions?
> Norbert

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Cross Framework Migration Hi All, I have developed a CF application. Now i want to port that to desktop, i.e. Full Framework, (let me call it FF). According to Microsoft .NET Compact Framework Core Reference, Chapter 23, as long as my CF application refers to those retargetable re

create sdf on desktop: any progress??? Hi, long time ago i asked informations on creating sdf (sqlserverce db files) on desktops pc... I am close to the delivery time for my application and i need to clarify this to finish my app. Seems that in MS people thinks that the need to put data into a

SQL ce replication - CREATE TABLE ??? I can make a publication in sql Enterprise Manager and than create database on the device with // Create the Local SSCE Database subscription and synchronize it: // Synchronize to the SQL Server

Can't create menuitem using C# in Compact Framework! I'm trying develop a SmartPhone application in C#. But it's bad! It just can't create menuitem as following code. this.mainMenu = new = new

Need help with the Stopwatch class...please help Hi, I am playing a little bit with the stopwatch class from Daniel Moth and I want to build a little stopwatch with the time format I use a timer to display it on a lable then it
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> Compact Framework All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group