# dotnet-script/dotnet-script

Run C# scripts from the .NET CLI.

Repository: https://github.com/dotnet-script/dotnet-script
Canonical: https://ross.abutalabs.com/products/dotnet-script
Language: C#
License: MIT
License Family: permissive
Topics: csx, roslyn, csharp-script, csi, dotnet-script
Last push: 2026-07-19T10:27:27+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 54, longevity 100
- inputs: {"age_days": 3619, "days_push": 45, "days_rel": 97, "gap_med": 280.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3008, forks 179 (observed 2026-08-28T04:07:37.701379+00:00)

## What it is
dotnet-script is a .NET global tool that lets you run C# scripts (.csx) directly from the .NET CLI, with inline NuGet package references and VS Code debugging support. It is built on Roslyn and provides full language services via OmniSharp.

## Use cases
- run C# scripts from the command line
- execute .csx script files with dotnet CLI
- use NuGet packages inline in C# scripts
- debug C# scripts in VS Code
- replace PowerShell or Python one-off scripts with C#
- automate tasks with quick C# scripts without creating a project

## When to choose
- you want to run C# code without scaffolding a full project
- you need scripting with full C# language and NuGet support
- you already work in the .NET ecosystem and want a REPL-like scripting workflow

## When to avoid
- you need a general-purpose scripting language with faster startup like Python or PowerShell
- you are building a compiled production application rather than scripts
- you do not have the .NET SDK installed

## Facets
- artifact type: cli-tool
- maturity: active
- function: cli, interpreter, developer-tools
- domain: developer-tools, programming-languages
- platform: cross-platform, cli, windows
- tags: csharp, csx, roslyn, scripting, dotnet, nuget, command-line, linux, macos

## Member repositories
- dotnet-script/dotnet-script (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.701379+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:47:23.372861+00:00, confidence not recorded.
  - readme: https://github.com/dotnet-script/dotnet-script (fetched 2026-08-28T04:07:37.701379+00:00, sha 574b71ff10d4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
