Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# application on Apple IOS [closed]

Tags:

c#

.net

ios

I have got C# .Net based applications. Is there any way I can run these applications for Apple IOS. I don’t have resources to develop all applications from scratch.

Many Thanks, Ni

like image 905
Nirali Avatar asked Sep 26 '11 10:09

Nirali


2 Answers

First of all, you can not just run your existing .NET programs unmodified on the iOS platform.

The .NET runtime does not work on iOS, nor will it (in relation to current app guidelines regarding runtime compilation). Mono has the same fate and will not run on the iOS platform.

Your only option is to get the code compiled to native iOS executables, and this will involve 3rd party tools.

One of those is the MonoTouch product. It is not free.

Note that this is not a technical limitation. The .NET runtime could run on the iOS platform if Microsoft, or Mono made it for that platform, but Apple does not allow such runtimes (the ones that download/execute not-yet-100%-compiled code) on their platform at all.

This is the same problem that prevents Flash from executing on the platform. The way Flash has gone to solve this is to compile the Flash programs to native iOS executables.

like image 195
Lasse V. Karlsen Avatar answered Sep 30 '22 01:09

Lasse V. Karlsen


You can use the tools made by the mono project.

These will not support all of the MS namespaces (non of the windows specific ones, such as WMI) and your application code needs to be written to be cross platform (so using Path.Combine for directory paths instead of concatenations).

Try the MoMA tools to see if your code is cross platform and get recommendations for fixing it if it is not.

like image 43
Oded Avatar answered Sep 29 '22 23:09

Oded