dotnet/samples

Sample code referenced by the .NET documentation

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 42 minutes ago
Added to GitGenius on September 18th, 2026
Created on January 30th, 2018
Open Issues & Pull Requests: 109 (+0)
GitHub issues: Enabled
Number of forks: 5,148
Total Stargazers: 3,744 (+0)
Total Subscribers: 378 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 21.9 hours
Mean response time: 180.5 days
90th percentile: 642.0 days
Tracked items: 20

Most active contributors

Sign in to see contributor activity.

How this project is maintained

90% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 50% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 21
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 450 days
Stale 30+ days: 21
Stale 90+ days: 18

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • dotnet-target-version (7)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

dotnet/samples is a collection of code examples that accompany the .NET documentation.

The repository serves as a centralized source of working code samples referenced throughout the official .NET documentation. Each sample demonstrates specific application or library scenarios, often combining multiple technologies or features. Samples are organized in subfolders that mirror the structure of the .NET documentation itself. The approach ensures that code examples remain synchronized with their corresponding documentation articles, with each sample including a readme file that explains its purpose and links to relevant resources.

Developers should use this repository as a reference when learning .NET concepts or when seeking working examples of specific features. The samples are designed to be buildable projects that run on the widest range of platforms possible, with a preference for .NET Core-based console applications where applicable. Platform-specific samples, such as web applications, WPF, Windows Forms, or mobile apps, include their required tools. The repository suits anyone building their understanding of .NET through practical examples, from beginners exploring core language features to developers implementing specialized scenarios. Issues and feature requests should be filed in the dotnet/docs repository rather than here, keeping discussions tied to the documentation pages that explain each sample's concepts.

The project maintains active validation workflows that check markdown formatting and build correctness across samples. Samples are expected to be buildable from the command line on platforms supported by .NET Core, with some samples requiring Visual Studio or platform-specific environments. The repository enforces that updates include buildable projects and ideally include tests for correctness. A continuous integration system validates that code samples remain functional and up to date with supported .NET versions.