Sign in to follow this  
MrAsia

C# and Linux Server Hosting

Recommended Posts

If I program my game in C# with multi player, will users be able to host the server software on Linux servers?

Think L4D2/Source games, I am pretty sure that people host those game servers on Linux rather than paying for a microsoft license.

-Confused

Thanks!

Share this post


Link to post
Share on other sites
[quote name='MrAsia' timestamp='1317688933' post='4868769']
If I program my game in C# with multi player, will users be able to host the server software on Linux servers?

Think L4D2/Source games, I am pretty sure that people host those game servers on Linux rather than paying for a microsoft license.

-Confused

Thanks!
[/quote]

Ofcourse you can, just remember to not use any windows only libraries for the server and read this:
http://www.mono-project.com/Guidelines:Application_Portability

Share this post


Link to post
Share on other sites
[quote name='MrAsia' timestamp='1317688933' post='4868769']
If I program my game in C# with multi player, will users be able to host the server software on Linux servers?

Think L4D2/Source games, I am pretty sure that people host those game servers on Linux rather than paying for a microsoft license.

-Confused

Thanks!
[/quote]

In theory, yes.
The Mono platform for Linux is a binary compatible implementation of Microsofts .NET platform.

In practice though, it is unlikely that a huge codebase written on the Windows platform will run off the bat on a Linux box.
A couple of years ago, even small projects wouldn't run on Mono without at least some minor changes to the source. But, things may have changed since then.

You can check [url="http://www.mono-project.com/Compatibility"]this page[/url] to see what parts of the .NET platform Mono currently does not support.

edit: Beaten by SimonForsman

Share this post


Link to post
Share on other sites
To clarify/add on to the two above, you do not want any .dll files generated because that renders it platform dependent (Windows). Also, theres always Wine (which I use for win programs) but as a developer I recommend avoiding such situations as that because very few know what to do with Wine.

Best of luck!

Share this post


Link to post
Share on other sites
[quote name='Morley' timestamp='1317754362' post='4869074']
To clarify/add on to the two above, you do not want any .dll files generated because that renders it platform dependent (Windows). Also, theres always Wine (which I use for win programs) but as a developer I recommend avoiding such situations as that because very few know what to do with Wine.

Best of luck!
[/quote]

Generating DLLs on mono/linux are just fine, they just aren't called dlls.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this