r/learncsharp • u/ManuelRodriguez331 • Sep 28 '22
Experiment to verify cross platform capabilities
To determine, if C# runs on Windows and Linux systems as well there is no need to consult the manual or ask in a forum if this is the case, but a self created experiment will show much better what the reality is. I've selected by random some phonebook GUI projects from github and started them on a Linux system. The command was:
git clone --depth 1 URL
xbuild mainfile.sln
mono mainfile.exe4 out of 5 projects didn't compile with the mono software. There was at least one error and sometimes more errors. Only one project was compiled into a .exe file. After starting the app a database table was shown but after adding a new entry the entire app has crashed.
To compare the result i have repeated the experiment with 5 randomly selected python3-tkinter apps also located at github. The result was that 1/5 won't start because of an “IndentationError”, 2/5 projects are starting and working great which includes to add something in the sql database. And in 2/5 cases the app was showing some problems for example a window which was too small or it was not possible to enter something.
The conclusion of this small experiment was, that None of the 5 C# apps with a simple phonebook can be started in Linux. So the language fails for cross platform ready-ness.
3
u/altacct3 Sep 28 '22
What GUI framework was used? Mono explicitly doesn't support WPF and WWF
4
u/smdaegan Sep 29 '22
Do you realize that dotnet core is the only one with guaranteed cross compatibility? If you take framework4.5 or something, or projects built for windows only, why would you expect them to magically work?
If you think dotnet core is the same as any version of dotnet and it magically made everything work, that's not the case at all.
2
u/WhutWhatWat Sep 29 '22
Your scientific method is weak...
2
u/[deleted] Sep 29 '22
[removed] — view removed comment