Run file-based C# apps with the .NET CLI when the user explicitly wants C#/.NET code without creating a project. Use for C# language/API experiments, one-file C# apps, small multi-file C# apps composed with `#:include`/`#:exclude`, or C# file-based apps linked with `#:ref`.
Install
npx skills add dotnet/skills --skill csharp-scriptsnpx skills add dotnet/skills --skill csharp-scripts -a claude-code -gnpx skills add dotnet/skills --skill csharp-scripts -a codex -ggemini skills install https://github.com/dotnet/skills.git --path plugins/dotnet-advanced/skills/csharp-scriptsgh skill install dotnet/skills csharp-scriptsgit clone --depth 1 https://github.com/dotnet/skills /tmp/dotnet__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/dotnet__skills/plugins/dotnet-advanced/skills/csharp-scripts ~/.claude/skills/csharp-scripts # Claude Code
cp -R /tmp/dotnet__skills/plugins/dotnet-advanced/skills/csharp-scripts ~/.agents/skills/csharp-scripts # Codex, Cursor, Gemini CLI, Copilot, OpenCode