Click here to Skip to main content
15,923,168 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i have a project in visual studio that's set to build for mobile devices (.Net compact framework).
i would like to use that project also for a desktop application, but it needs to be compiled as .Net framework, not the compact one.

Any idea's?
Posted

One solution is to create two projects, and then use add as link in one of them to ensure that they refer to the same files.

Regards
Espen Harlinn
 
Share this answer
 
Comments
mpower88 12-Jan-11 4:48am    
worked! thx a lot!
Espen Harlinn 12-Jan-11 5:05am    
Nice that you found it usefull. I use this technique a lot when I work with SilverLight and WCF. I put common definitions and types into an assembly for the full .Net platform, and link the same source files into the SilverLight version of the assembly.
Assuming the same functionality, you could use the same logic/back code for both of them, but have two UI's.
Just detect and call the correct UI.
 
Share this answer
 
Separate the UI from rest of the logic and you have achieved this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900