Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create c# code under linux

Tags:

c#

Lately I used a lot of C# for Windows. I am trying to stick with C# and create C# applications under Ubuntu 11.

The problem is that I was so use to editor that I did not learn how to create elements under code only.

Could anyone point me in direction where I can find a solution on how to create windows, labels, textboxes etc. just by using code?

like image 465
HelpNeeder Avatar asked Dec 09 '22 08:12

HelpNeeder


2 Answers

Do you mean an IDE? MonoDevelop is probably what you want.

As of 2.4, I believe it comes with WinForms Designer, which will help you build your forms.

If that doesn't work, you can use WinForms Designer itself.

like image 188
Vivin Paliath Avatar answered Dec 11 '22 21:12

Vivin Paliath


You can install MONO under Linux, and complie C# program with MONO and run it. This information is about What's MONO. http://www.mono-project.com/What_is_Mono

To compile and install MONO, you can reference here, and this is about how to use IDE to develop MONO application under Linux.

Although MONO can help you run .NET/C# application under Linux, you still need to consider the following things when migrating the application.

  • Linux is Case sensitive but Windows is not. Some code need to read ini or xml file, you need to ensure the file name is correct in the Linux program.
  • Directory structure is different, such as C:\Windows and /etc/, you need to ensure that the code references the correct locations
  • Some XML configuration information needs to be re-tested to ensure compatibility.
  • Do a high coverage test to ensure every function works properly
  • Security environment is different between Linux and Windows, and this may have an impact on the application
like image 32
Lu Ming Avatar answered Dec 11 '22 23:12

Lu Ming