What is .NET?

In short
NET is a free, open source developer platform from Microsoft for building many kinds of apps, including web, desktop, mobile, games, and IoT devices. You write code in languages such as C#, F#, or Visual Basic, and it runs on Windows, Linux, and macOS. It is one of the main ways to build software on the Microsoft stack and beyond.
What .NET is
.NET is a developer platform. A platform is a set of tools, libraries, and a runtime that you use to build and run software. The runtime is the part that executes your program while it runs. Together, these pieces let you write an application once in a supported language and run it on a computer without rebuilding the whole environment yourself.
The official documentation describes .NET as free, cross platform, and open source. That means you can download it at no cost, run it on Windows, Linux, or macOS, and read or contribute to its source code. Microsoft develops it in the open, and a community of developers helps shape it.
You can use .NET for many kinds of software: websites and web APIs, desktop programs, mobile apps, games, cloud services, and devices in the Internet of Things (IoT), which are small connected hardware gadgets. The same platform covers all of these areas, so a team can reuse skills and libraries across projects.
Languages you can use
The platform supports several programming languages. The three main ones in the documentation are C#, F#, and Visual Basic. C# is a modern, object-oriented, type-safe language and is the most common choice. F# is a functional-first language that puts an emphasis on concise, robust code. Visual Basic has a readable syntax and is often used by developers who come from older Microsoft tooling.
All of these languages compile to a shared intermediate form and run on the same runtime. This is why a library written in one language can usually be used from another. Your choice of language mostly depends on your team, your experience, and the kind of problem you are solving.
How it works
When you build a .NET application, the compiler turns your source code into an intermediate form. At run time, the runtime loads that form and turns it into instructions for the machine the program is running on. This step is sometimes called just-in-time compilation. Because the runtime handles the machine details, the same compiled program can run on different operating systems as long as the right runtime is installed.
The platform also includes a large base class library. This is a collection of ready-made code for tasks such as reading files, working with collections, handling text, and making network calls. You call these libraries instead of writing everything from scratch.
The runtime manages memory for you as well. It includes a garbage collector that finds objects your program no longer uses and frees their memory. If you want to understand how that works in practice, our guide on how garbage collection works explains the basic idea.
Tools you will use
You can write .NET code in a plain text editor, but most developers use an IDE such as Visual Studio or a code editor with extensions. The .NET SDK, which is the software development kit, gives you the compiler, libraries, and the command line interface (CLI). The CLI lets you create, build, test, and run projects from a terminal. Typical commands include creating a new project, building it, and running it.
The documentation also points to tools for diagnostics, code analysis, and package validation. These help you find problems early and keep your libraries healthy before you publish them.
Common mistakes
Beginners often confuse .NET with the older .NET Framework. The .NET Framework is the Windows-only version that has been around for many years. The modern .NET is the cross platform successor. When you read tutorials or search results, check which one the article describes, because the setup and some APIs differ.
Another common mistake is installing only the runtime when you need the full SDK. The runtime is enough to run finished apps, but you need the SDK to build them. Also check which version your project targets. Mixing versions can cause confusing errors, so it helps to pin the version your team uses.
Finally, do not assume every library works everywhere. Some APIs are tied to specific platforms, such as Windows desktop frameworks. The documentation lists platform support for each API, so check it before you commit to a design.
Alternatives
If you are choosing a platform for a new project, you have other options. Java has a similar managed runtime model. Node.js lets you use JavaScript on the server, and our introduction to JavaScript explains that language. Go and Rust are popular for systems and network services. The right choice depends on your team's skills, the libraries you need, and the environments where your software will run.
.NET is a strong option when you want one platform that covers a wide range of application types, with a large ecosystem of tools and community support.
FAQ
Is .NET free to use?
Yes. The official documentation describes .NET as free and open source, so you can download and use it without paying a license fee. Check the download page for the current terms if you plan to ship a product.
What is the difference between .NET and .NET Framework?
.NET Framework is the older version that runs on Windows only. Modern .NET is cross platform and open source, and it is where new features are added. New projects usually start with modern .NET.
Which language should I learn first for .NET?
Most newcomers start with C#, since it is the most widely used language on the platform and has the most learning material. F# and Visual Basic are also supported if they fit your background better.
Can I build websites with .NET?
Yes. The documentation points to ASP.NET Core for web apps and APIs, and to Blazor for interactive web interfaces. Both run on the same platform as other .NET software.
Sources
This page is based on the official documentation below. Read it for full detail.
.NET — official documentation ↗