Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can any c# application be run on linux [duplicate]

Tags:

I am developing a game server in c#. Server talks to clients via sockets and sends byte[] using custom packet protocol. The question is, will this software be windows os specific or will be able to run on linux server. I've read different posts on different forums where developers say that their server is windows os only, some say it can run on linux.

Is there any specific factor? Does application have to be written specificly to be able to run on linux?

like image 852
Scavs Avatar asked Aug 28 '15 22:08

Scavs


People also ask

Can any USB-C cable charge MacBook?

Unfortunately, iPhones don't use USB-C to charge. Many Android phones use USB-C, so those AC adapters could charge a MacBook/Pro, but it would take a long time. Plug one end into the MacBook Pro. Plug the other end into your power socket or USB hub to begin charging.

Can I charge my laptop with my phone charger?

They can also be used to charge your computer. However, the power of a phone charger or a power bank is relatively low for charging a computer. If you use a phone charger or a power bank to charge your computer, it may take longer to charge.

Can all USB-C output video?

This means that smartphones, tablets, laptops, cameras, and any other devices with a USB-C port can be built to directly output video to any HDMI display with a single cable.

Are all USB-C cables the same?

No, not all USB-C cables are equal. USB-C stands for the shape and type of connector, which is the same for all USB-C cables but not all cables support the same kind of protocols and transfer speeds. To use a Thunderbolt 3 product from Akitio, a Thunderbolt 3 cable is required.


1 Answers

Update for 2020

.NET Core and .NET Framework are being merged together into ".NET 5". For all intents and purposes, this is just the next version of .NET Core (and .NET Framework is going away).

WPF still only runs on windows (though a universal XAML based UI system is in development), even though its running on .NET Core/5, and you still have to build specifically for Linux for supported project types, but the cross platform support is much better than when I originally wrote this.

Original

For .NET code to be able to run on Linux, you need a version of .NET that is compatible with that platform.

Full .NET is windows-only, but there is the Mono framework which runs on Linux. .NET Core is also being ported to linux.

Neither Mono or .NET Core supports the entirety of standard .NET. For example, neither will let you run a WPF application. So as long as your code is compatible with one of the aforementioned frameworks; yes, you can run it on Linux.

For your specific example, the classes you mention should be supported, and I don't think you'll have any trouble running under either Mono or .NET Core.

like image 92
BradleyDotNET Avatar answered Nov 11 '22 07:11

BradleyDotNET