csharp-scripts
仓库创建 2026年2月4日最近提交 18 小时前SkillHot 收录 20 天前
▸ 精选理由
快速验证 C# 概念与小工具,无需创建完整项目模板。
▸ 风险提示
会执行用户提供的代码并调用本地 dotnet,存在任意代码执行风险。
这个 Skill 做什么
用 dotnet CLI 运行基于文件的 C# 应用,适合快速原型与语言实验。
用 dotnet CLI 直接运行基于文件的 C# 程序,适合想在不建项目的情况下做语言或 API 快速验证、单文件工具或小型多文件原型。适用场景是需要保留 C# 语法和调试体验的实验性质代码,不适合当作轻量脚本语言来做一次性自动化任务。优点是开发体验接近正式项目,缺点是开销比纯脚本略大。
▸ 展开 SKILL.md 英文原文
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`. Do not use for language-agnostic throwaway scripts, generic computations, Python/PowerShell-style automation, full projects, or existing app integration.
4.8k
Stars
351
Forks
40
仓库内 Skill
+610
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-advanced/skills/csharp-scripts/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dotnet/skills/main/plugins/dotnet-advanced/skills/csharp-scripts/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# File-Based C# Apps ## When to Use - Testing a C# concept, API, or language feature with a quick file-based app - Prototyping logic before integrating it into a larger project - Building a small utility from one entry-point file and a few helper `.cs` files ## When Not to Use - The user asks for a language-agnostic quick script, throwaway computation, or shell/Python/PowerShell-style automation - The user needs a full project, solution integration, or project references in an existing app - The user is working inside an existing .NET solution and wants to add code there - The app is large enough that project structure, build customization, tests, or publish configuration should live in
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有