Use .NET assemblies in compact framework ?

J

JLD

Hi,

I have a list of assemblies which are used in my desktop
application.
Can i use them in a smart device application ?

.... And can i use assemblies created for a smart device
application in a windows desktop application ?

JLD
 
T

Tim Wilson

Assemblies compiled against the compact framework are "retargetable" to the
desktop, assuming that you haven't used anything device specific. So
recompile the desktop assemblies in a CF class library and it should work
out.
 
L

Lloyd Dupont

event better than that.

assemblies compiled against the compact framework will just work straight
away (without recompiling) on the desktop provided

1. you didn't use CF specific stuff (InputPanel, interop, etc ...)
2. you have .NET 1.1 installed
 
T

Tim Wilson

Isn't that what I said? :) By the original post it sounds like the original
poster also has some desktop assemblies that need to be used on the device.
So these will need to be recompiled in a CF class library in order to get
them to work on both the desktop-side and device-side.
 
C

Chris J.T. Auld [MVP]

I have a list of assemblies which are used in my desktop
application.
Can i use them in a smart device application ?

Sure. Just use them as you would any other assembly. A good example is
SharpZipLib- works just fine on desktop and CF.

If it is UI related stuff then it will often be a different story. It is,
however, easy enough to have the same source code compile to both Desktop
and CF by using compiler directives to block out different areas of code. I
have a framework for dynamically building UI's at runtime that works on both
Desktop and CF with the source code compiled (with directives) to target
each platform.

Cheers
Chris

-------------------------------------------
Kognition Consulting Limited - Thought Meets Technology
Chris J.T. Auld - Managing Director
Microsoft MVP (Windows Mobile Devices)
Phone: +64 3 453 0064
Mobile: +64 21 500 239
Email: (e-mail address removed)
 
L

Lloyd Dupont

Chris J.T. Auld said:
Sure. Just use them as you would any other assembly. A good example is
SharpZipLib- works just fine on desktop and CF.

not exactly straight away :)
I had to put a custom implementation of System.IO.BufferedStream
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top