472,958 Members | 2,239 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 3277
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!
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.