# dotnet/samples

Sample code referenced by the .NET documentation

Repository: https://github.com/dotnet/samples
Canonical: https://ross.abutalabs.com/products/dotnet-samples
Homepage: https://docs.microsoft.com/samples/browse
Language: C#
License: CC-BY-4.0
License Family: other
Topics: dotnet, csharp, fsharp, visual-basic, dotnet-core
Last push: 2026-08-17T17:00:19+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 3137, "days_push": 16, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3738, forks 5148 (observed 2026-08-28T04:08:15.880747+00:00)

## What it is
The official repository of sample code referenced by the .NET documentation, containing buildable example projects organized by documentation topic. Samples demonstrate application and library scenarios across .NET technologies including C#, F#, and Visual Basic.

## Use cases
- learn .NET through runnable example code
- find sample code for a .NET documentation topic
- see how to use a specific .NET feature or toolkit
- get a starting project template for learning C#
- verify how an API behaves with a working example

## When to choose
- you are learning .NET or C# and want working code tied to official docs
- you need a minimal buildable example of a .NET feature
- you want samples maintained and CI-validated by Microsoft

## When to avoid
- you need a production-ready library or application rather than examples
- you want a single cohesive project instead of many independent samples
- you need samples for a non-.NET language or stack

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, documentation
- domain: developer-tools, tutorials, cross-platform
- platform: cross-platform, dotnet, windows
- tags: dotnet, csharp, fsharp, visual-basic, sample-code, microsoft, linux, macos

## Member repositories
- dotnet/samples (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.880747+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:29:08.979099+00:00, confidence not recorded.
  - readme: https://github.com/dotnet/samples (fetched 2026-08-28T04:08:15.880747+00:00, sha ca5713ed53d0)
  - homepage: https://docs.microsoft.com/samples/browse (fetched 2026-08-29T09:23:30.813827+00:00, sha 6a8277eace00)
  - site_page: https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge (fetched 2026-08-29T09:23:30.822931+00:00, sha c363b2f43d4b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
