Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is .NET Compact a perfect subset of .NET?

Is .NET Compact a perfect subset of .NET?

Can I write a Windows Forms application and run it on .NET Compact, assuming that I took into account screen size and other limitations and avoid classes and methods not supported by .NET Compact or is .NET Compact a different and incompatible GUI framework?

like image 459
Andrew J. Brehm Avatar asked Feb 16 '10 16:02

Andrew J. Brehm


2 Answers

Yes, for the most part, (especially in regards to Windows Forms) .NET CF is a subset of the standard .NET Framework.

... other limitations and avoid classes and methods not supported by .NET Compact ...

This is the main tricky portion. .NET CF doesn't support quite a bit of things in the framework.

There are a couple of obscure classes in the framework only supported on CF, such as the IrDA classes in networking, but otherwise, everything in .NET CF is supported in the standard distribution.

For details, see "Differences with the .NET Framework" on MSDN.

like image 134
Reed Copsey Avatar answered Sep 18 '22 16:09

Reed Copsey


No, but you can do the other way around; write a compact framework app and run it on the desktop. There may be some limitations that I am not aware of, but for simpler applications it works.

like image 29
Fredrik Mörk Avatar answered Sep 21 '22 16:09

Fredrik Mörk