Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a C# program be cross-platform?

I'm a newbie to programming, and I'm considering using C# to write a VERY simple program that simply edits a text file.

  • Will it work on Macs and Linux? What will work?
  • I want to know what makes a program cross-platform?
like image 794
mowwwalker Avatar asked Aug 07 '11 19:08

mowwwalker


People also ask

Can AC be hot?

A car A/C blowing hot air is often the result of a refrigerant leak. Refrigerant is a liquid that circulates through your car's A/C system, expanding and contracting as it removes heat and humidity from the cabin. None of the other A/C components will function correctly without proper refrigerant levels.

How many cans of AC Pro do I need?

Most cars hold between 28 and 32 ounces of refrigerant (or about 2—3 12oz cans), however larger vehicles and those with rear A/C will likely hold more. Check your vehicle manual for the system capacity for your specific vehicle.

How much does it cost to recharge AC?

Most homeowners will pay in the range of $200 to $400 for a refill, depending on the type and size of their HVAC unit. If you own a larger r22 unit, you may have to spend $600 or more.

Will AutoZone put Freon in my car?

If you need help performing this, or any AC recharge or service, check out our list of preferred shops in your area that can help. Or, if you'd like to tackle the job yourself, AutoZone has all the tools and refrigerant to service your R-134A or R-12 vehicle.


2 Answers

C# can be compiled for and ran on multiple platforms (Windows, Linux, macOS) by using .NET Core.

Previously, cross-platform development using C# could only be done by using Mono which is a third-party implementation however it is now recommended to use .NET Core as it is developed by Microsoft.

like image 151
Justin Ethier Avatar answered Oct 05 '22 23:10

Justin Ethier


Now C# is fully cross platform and has variety of frameworks and run times.

Java is a language + framework. But C# is just a modern language. C# language features are very powerful, easy to learn. No confusion between framework and language.

C# can be used in following frameworks

  • .Net core (Multi platform supports Linux, Windows and Mac), mostly used to develop restful services, web applications and enterprise systems
  • .Net Framework (Windows only), Same as .net core, but has more windows only features
  • Unity - One of most used game engine to develop games for PC, Sony, Xbox devices etc..
  • Xamarin - To develop native Mobile apps (Android, IOS, Mac)
  • .Net standard - Create a library in .net standard use in all above applications

Java - Code once, Ship same file to all platforms

C++, C, Rust - Code once, Compile for specific platform

C# - It is just a language, pick your framework according to requirement.

Most popular applications like Chrome, Firefox uses C++, Rust and they are compiled for each platform. But still they share the majority of code between these platforms. Some games use C++ to share the code between IOS and Android.

For new developers its good to start with NodeJS and C#. Both are easy and can do any type of applications.

like image 20
CreativeManix Avatar answered Oct 05 '22 23:10

CreativeManix