Create c# code under linux
Lately I used a lot of C# for Wind开发者_开发技巧ows. 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?
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.
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
I would suggest not doing that, and instead using an IDE on Linux. In particular Eclipse with Emonic and NAnt or MonoDevelop should work well for you.
To be perfectly honest C# Winforms was not designed to be written by hand.
精彩评论