Portal Home > Knowledgebase > Articles Database > Export C# program from Windows to Linux?


Export C# program from Windows to Linux?




Posted by WootWoot, 11-12-2010, 08:39 PM
Hello everyone. I got to export a program of mine originally written for Windows to Linux (to CentOS, more precisely). I tried everything: - Installing Mono addon to Visual Studio 2010. - Creating a local Linux virtual machine using Mono's OpenSuse image or a remote VPS with Mono to remotely compile the program. - Tried installing MonoDevelop on CentOS. I can't get any of this to work properly. Would someone kindly point me in the correct direction?

Posted by centauricw, 11-13-2010, 12:40 AM
Not all of the object classes available in .NET will be available in Mono. You may need to make changes to use the Mono version of some object classes.

Posted by RelativeDesign-Jerret, 11-13-2010, 02:55 AM
Can you elaborate on the issue(s)? How big is this project?

Posted by DeanoC, 11-18-2010, 08:52 PM
Assuming you have source to your .NET app. Run it on your development machine under Mono. Then as it fires exceptions for missing function, look each one up and try and find a cross platform API call (or worse case you have to write your own using lower level cross platform API). Other possible issues can arise due to the differences in the underlying Win vs Posix environments. Easy one is often due to the case sensitive filesystem on Linux



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Got hacked today (Views: 597)