473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Converting between compact and full framework projects (and vice versa)

bob
Hi

Using 2003 - targeting the compact framework (c#), but would like to do most
development using the full.net (manually leaving out stuff not in the
compact framework).

Q. Trying to find a way of converting a project to have builds for both
compact and full. Project properties doesn't seem to help

Thanks

Bob
Jan 12 '06 #1
5 3306
You can build the project against the compact framework and the resulting
assembly will run on the desktop. In other words, assemblies compiled
against the compact framework are retargeted to the full framework when run
on the desktop. So limiting yourself to types and members that exist in both
frameworks and compiling against the compact framework is one way to go.
Another way is to create one full framework project and one compact
framework project and link to the same source files.

--
Tim Wilson
..NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi

Using 2003 - targeting the compact framework (c#), but would like to do most development using the full.net (manually leaving out stuff not in the
compact framework).

Q. Trying to find a way of converting a project to have builds for both
compact and full. Project properties doesn't seem to help

Thanks

Bob

Jan 12 '06 #2
bob
Hi Tim

Thanks for your quick response

Your first suggestion is the one we are trying to do and does work.
Unfortunately can't persuade the IDE to co-operate (!).
Insists in trying to deploy to emulator or real portable device when
debugging. Do you know if there is a way to add .net as a target, the
Configuration manager seems not to offer any target option but the Pocket
PC (and vice versa for a full .net project) - had a look at manually
editing the project files - bit scary :)
Bob
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
You can build the project against the compact framework and the resulting
assembly will run on the desktop. In other words, assemblies compiled
against the compact framework are retargeted to the full framework when
run
on the desktop. So limiting yourself to types and members that exist in
both
frameworks and compiling against the compact framework is one way to go.
Another way is to create one full framework project and one compact
framework project and link to the same source files.

--
Tim Wilson
.NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi

Using 2003 - targeting the compact framework (c#), but would like to do

most
development using the full.net (manually leaving out stuff not in the
compact framework).

Q. Trying to find a way of converting a project to have builds for both
compact and full. Project properties doesn't seem to help

Thanks

Bob


Jan 12 '06 #3
AFAIK, you *can't* do this in VS .NET 2003. However, you can choose to
simply build (not run or deploy) the solution and then go to the output
directory and run the exe from there. You won't get the automatic debugging
support that VS provides, although I'm sure that you could attach the
debugger to the exe.

A feature to allow this was actually explored in the earlier stages of VS
2005. But it was cut.
http://lab.msdn.microsoft.com/Produc...ckId=FDBK19279

--
Tim Wilson
..NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi Tim

Thanks for your quick response

Your first suggestion is the one we are trying to do and does work.
Unfortunately can't persuade the IDE to co-operate (!).
Insists in trying to deploy to emulator or real portable device when
debugging. Do you know if there is a way to add .net as a target, the
Configuration manager seems not to offer any target option but the Pocket
PC (and vice versa for a full .net project) - had a look at manually
editing the project files - bit scary :)
Bob
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
You can build the project against the compact framework and the resulting assembly will run on the desktop. In other words, assemblies compiled
against the compact framework are retargeted to the full framework when
run
on the desktop. So limiting yourself to types and members that exist in
both
frameworks and compiling against the compact framework is one way to go.
Another way is to create one full framework project and one compact
framework project and link to the same source files.

--
Tim Wilson
.NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi

Using 2003 - targeting the compact framework (c#), but would like to do

most
development using the full.net (manually leaving out stuff not in the
compact framework).

Q. Trying to find a way of converting a project to have builds for both compact and full. Project properties doesn't seem to help

Thanks

Bob



Jan 12 '06 #4
bob
Hi Tim

Thanks for the info - saved a lot of hours trying to do the impossible!
Pity it was dropped though, suspect it would have turned out to be one of
the most important features for easy and quick development of compact
framwork products.

Cheers

Bob

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
AFAIK, you *can't* do this in VS .NET 2003. However, you can choose to
simply build (not run or deploy) the solution and then go to the output
directory and run the exe from there. You won't get the automatic
debugging
support that VS provides, although I'm sure that you could attach the
debugger to the exe.

A feature to allow this was actually explored in the earlier stages of VS
2005. But it was cut.
http://lab.msdn.microsoft.com/Produc...ckId=FDBK19279

--
Tim Wilson
.NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi Tim

Thanks for your quick response

Your first suggestion is the one we are trying to do and does work.
Unfortunately can't persuade the IDE to co-operate (!).
Insists in trying to deploy to emulator or real portable device when
debugging. Do you know if there is a way to add .net as a target, the
Configuration manager seems not to offer any target option but the
Pocket
PC (and vice versa for a full .net project) - had a look at manually
editing the project files - bit scary :)
Bob
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in
message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> You can build the project against the compact framework and the resulting > assembly will run on the desktop. In other words, assemblies compiled
> against the compact framework are retargeted to the full framework when
> run
> on the desktop. So limiting yourself to types and members that exist in
> both
> frameworks and compiling against the compact framework is one way to
> go.
> Another way is to create one full framework project and one compact
> framework project and link to the same source files.
>
> --
> Tim Wilson
> .NET Compact Framework MVP
>
> "bob" <bo*@notthere.com> wrote in message
> news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>> Hi
>>
>> Using 2003 - targeting the compact framework (c#), but would like to
>> do
> most
>> development using the full.net (manually leaving out stuff not in the
>> compact framework).
>>
>> Q. Trying to find a way of converting a project to have builds for both >> compact and full. Project properties doesn't seem to help
>>
>> Thanks
>>
>> Bob
>>
>>
>
>



Jan 12 '06 #5
Yeah, it would have been a nice feature to have supported right out of the
box.

--
Tim Wilson
..NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Hi Tim

Thanks for the info - saved a lot of hours trying to do the impossible!
Pity it was dropped though, suspect it would have turned out to be one of
the most important features for easy and quick development of compact
framwork products.

Cheers

Bob

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
AFAIK, you *can't* do this in VS .NET 2003. However, you can choose to
simply build (not run or deploy) the solution and then go to the output
directory and run the exe from there. You won't get the automatic
debugging
support that VS provides, although I'm sure that you could attach the
debugger to the exe.

A feature to allow this was actually explored in the earlier stages of VS 2005. But it was cut.
http://lab.msdn.microsoft.com/Produc...ckId=FDBK19279
--
Tim Wilson
.NET Compact Framework MVP

"bob" <bo*@notthere.com> wrote in message
news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
Hi Tim

Thanks for your quick response

Your first suggestion is the one we are trying to do and does work.
Unfortunately can't persuade the IDE to co-operate (!).
Insists in trying to deploy to emulator or real portable device when
debugging. Do you know if there is a way to add .net as a target, the
Configuration manager seems not to offer any target option but the
Pocket
PC (and vice versa for a full .net project) - had a look at manually
editing the project files - bit scary :)
Bob
"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in
message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> You can build the project against the compact framework and the

resulting
> assembly will run on the desktop. In other words, assemblies compiled
> against the compact framework are retargeted to the full framework when > run
> on the desktop. So limiting yourself to types and members that exist in > both
> frameworks and compiling against the compact framework is one way to
> go.
> Another way is to create one full framework project and one compact
> framework project and link to the same source files.
>
> --
> Tim Wilson
> .NET Compact Framework MVP
>
> "bob" <bo*@notthere.com> wrote in message
> news:dq**********@nwrdmz03.dmz.ncs.ea.ibs-infra.bt.com...
>> Hi
>>
>> Using 2003 - targeting the compact framework (c#), but would like to
>> do
> most
>> development using the full.net (manually leaving out stuff not in the >> compact framework).
>>
>> Q. Trying to find a way of converting a project to have builds for

both
>> compact and full. Project properties doesn't seem to help
>>
>> Thanks
>>
>> Bob
>>
>>
>
>



Jan 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dharmendra Singh | last post by:
Hi I'm using .Net(C#) and working on the form(Screen) which have text boxes for both arabic and english data to store. So i want to change the language at run time from arabic to english and...
4
by: Chris Gordon-Smith | last post by:
I am tying to call a Pascal function from C++, and vice versa. Does anyone know how to do this, or where detailed information on this topic can be found? For the C++ to Pascal call I have...
5
by: Protoman | last post by:
How do I call assembly code from C++ code and vice versa? Thanks for the help!!!
2
by: Steve - DND | last post by:
Just wondering if anyone out there has any code to convert a plural word to it's singular form and vice versa. Most of our database tables are named in a plural fashion. When we go to create...
2
by: Urs Vogel | last post by:
Hi What's sthe best approach to convert char or char* strings to a BSTR and vice versa? I would like to omit OLE2A macros and allocate the memory myself, or is the the only way? Any hints? ...
4
by: rz0 | last post by:
Hi all, This is a question about both C89 and C99 and is based on my partial reading of the standard drafts (one from before C89 but mainly N1124). If appropriate, please give a...
6
yabansu
by: yabansu | last post by:
Hi all, I think most of you probably know the two .NET framework functions, namely Encoding.GetBytes(string) and Encoding.GetString(byte), to convert string into byte array and vice versa. Now,...
1
by: Astan Chee | last post by:
Hi, I have a string in this format "DD/MM/YYY" for example: tdate = "18/01/1990" and Im trying to convert this to epoch time, can anyone help? Im also trying to convert that epoch time to the...
7
by: victory2006 | last post by:
like we have an integer value of : 9 and i need to convert it to binary numbers and vice versa, thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.