Go Off-Platform with C#
By the end of this article you will be able to run a C# console application on your own computer!
C#, like any programming language, is a way to communicate with your computer: giving it commands to print things to a console, lay out a website, run a video game, etc. At this point we assume you’ve seen a C# console application in the Codecademy learning environment. If you haven’t, take the first lesson.
To use C#, we need to teach your computer how to understand the language. We do this by downloading some free software.
There are multiple options, but we recommend downloading Microsoft Visual Studio. This app helps you write, debug, and run C# code. It is maintained by the same company that first developed the C# language and it’s very popular amongst C# developers. In a 2017 survey of over 5,000 people, the software company JetBrains found that 92% of C# developers use Visual Studio to write and run C# code on their own computers.
Everyone’s computer system, sometimes called a local development environment, is different. That means that everyone’s setup process will be different as well. We’ve included videos and documentation that describe the process for MacOS, Windows, and Linux. Take your pick and happy coding!
- Setting up C# on MacOS
- Setting up C# on Windows
- Setting up C# on Linux: This links to MonoDevelop, a good replacement for Visual Studio (since VS isn’t available on Linux at the time of writing this article)
'The Codecademy Team, composed of experienced educators and tech experts, is dedicated to making tech skills accessible to all. We empower learners worldwide with expert-reviewed content that develops and enhances the technical skills needed to advance and succeed in their careers.'
Meet the full teamRelated articles
- Article
Getting Started with Visual Studio Code
Learn how to install and explore Visual Studio Code, a powerful editor for coding, debugging, and version control. - Article
Getting Started with Visual Studio Code and Building HTML Websites
Visual Studio Code is one of the most popular and powerful text editors used by software engineers today. - Article
Debugging in Visual Studio
Debug your code using Visual Studio debugging tools
Learn more on Codecademy
- Free course
Introduction to Linux: Installation
Dive into Linux, a useful and lightweight operating system with a large impact on open-source technology.Intermediate1 hour - Course
Introduction to Linux
In this introductory course, we'll be getting familiar with Linux and how to navigate within a Linux environment!With CertificateIntermediate4 hours - Free course
Intro to C#
Dive into C#, a scalable programming language that is easy to read and maintain.Beginner Friendly4 hours