.NET
Overview
.NET is a free, cross-platform, open-source development platform from Microsoft for building web, cloud, desktop, mobile, AI, and IoT applications. The runtime (CoreCLR) executes Intermediate Language compiled from C#, F#, or Visual Basic, with a large class library. Read this when installing the SDK/runtime, using the dotnet CLI, or deploying a .NET service.
Official sources
Install / setup
Download the SDK (which includes the runtime) for your platform from https://dotnet.microsoft.com/download (current LTS shown there is the .NET 10.0 line). On Linux, follow the package-manager instructions linked from the page. Verify and scaffold:
dotnet --version
dotnet new console -o hello
dotnet run --project hello
Core concepts
- The
dotnet CLI drives the workflow: new, restore, build, run, test, publish.
- The SDK contains build tooling plus the runtime; the runtime-only package just executes apps.
- CoreCLR is the execution engine; the Base Class Library provides core APIs.
- Source compiles to Intermediate Language (IL), JIT-compiled to native code at runtime (AOT also available).
- NuGet is the package manager; project/dependency metadata lives in
.csproj/.fsproj files.
- Release lifecycle alternates LTS (even majors, longer support) and STS releases.
Best practices
- Target an LTS release (e.g. .NET 10 LTS) for production longevity.
- Install the SDK for development; ship the runtime-only package (or self-contained/AOT) to servers.
- Commit
packages.lock.json or pin versions for reproducible NuGet restores.
- Use
dotnet publish with the right runtime identifier for framework-dependent or self-contained deploys.
Common pitfalls
- Installing only the runtime when you need to build → install the SDK for
dotnet build.
- Mismatched target framework vs installed runtime version → align
TargetFramework with an installed runtime.
- Assuming Windows-only → .NET runs cross-platform; verify platform-specific APIs before relying on them.
Examples
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello from .NET");
app.Run();
Further reading
Related skills
- ../jvm — comparable managed bytecode runtime
1---2name: dotnet3description: .NET — Microsoft's free, cross-platform, open-source runtime (CoreCLR) for C#/F#/VB apps and services. Consult for installing, running, and deploying .NET.4domain: stack5category: runtime6tags: [dotnet, csharp, coreclr, runtime, cli, cross-platform]7official_sources:8 - https://learn.microsoft.com/dotnet/9 - https://github.com/dotnet/runtime10verified: 2026-06-1611metadata:12 source: https://skillmd.com/skills/gabriel7silva/dotnet13---1415# .NET1617## Overview18.NET is a free, cross-platform, open-source development platform from Microsoft for building web, cloud, desktop, mobile, AI, and IoT applications. The runtime (CoreCLR) executes Intermediate Language compiled from C#, F#, or Visual Basic, with a large class library. Read this when installing the SDK/runtime, using the `dotnet` CLI, or deploying a .NET service.1920## Official sources21- Docs: https://learn.microsoft.com/dotnet/22- Repo: https://github.com/dotnet/runtime23- Install / download: https://dotnet.microsoft.com/download2425## Install / setup26Download the SDK (which includes the runtime) for your platform from https://dotnet.microsoft.com/download (current LTS shown there is the .NET 10.0 line). On Linux, follow the package-manager instructions linked from the page. Verify and scaffold:2728```bash29dotnet --version30dotnet new console -o hello31dotnet run --project hello32```3334## Core concepts35- The `dotnet` CLI drives the workflow: `new`, `restore`, `build`, `run`, `test`, `publish`.36- The SDK contains build tooling plus the runtime; the runtime-only package just executes apps.37- CoreCLR is the execution engine; the Base Class Library provides core APIs.38- Source compiles to Intermediate Language (IL), JIT-compiled to native code at runtime (AOT also available).39- NuGet is the package manager; project/dependency metadata lives in `.csproj`/`.fsproj` files.40- Release lifecycle alternates LTS (even majors, longer support) and STS releases.4142## Best practices43- Target an LTS release (e.g. .NET 10 LTS) for production longevity.44- Install the SDK for development; ship the runtime-only package (or self-contained/AOT) to servers.45- Commit `packages.lock.json` or pin versions for reproducible NuGet restores.46- Use `dotnet publish` with the right runtime identifier for framework-dependent or self-contained deploys.4748## Common pitfalls49- Installing only the runtime when you need to build → install the SDK for `dotnet build`.50- Mismatched target framework vs installed runtime version → align `TargetFramework` with an installed runtime.51- Assuming Windows-only → .NET runs cross-platform; verify platform-specific APIs before relying on them.5253## Examples54```csharp55var builder = WebApplication.CreateBuilder(args);56var app = builder.Build();57app.MapGet("/", () => "Hello from .NET");58app.Run();59```6061## Further reading62- .NET documentation: https://learn.microsoft.com/dotnet/63- Linux install guide: https://learn.microsoft.com/dotnet/core/install/linux6465## Related skills66- ../jvm — comparable managed bytecode runtime