一键导入
nuget-pack
Pack and verify the DotSerial NuGet package. Use when asked to pack, publish, or verify the NuGet output for the DotSerial library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Pack and verify the DotSerial NuGet package. Use when asked to pack, publish, or verify the NuGet output for the DotSerial library.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify and add the required copyright header to DotSerial C# source files. Use when creating a new .cs file or when a file is missing the header.
Debug failing GitHub Actions CI runs for DotSerial. Use when a CI build or test is failing on GitHub Actions and you need to understand why and fix it.
Format a Conventional Commits message for DotSerial changes. Use when asked to write a commit message, format a commit, or check if a message follows the project's commit conventions.
Build and test the DotSerial project. Use when asked to build, run tests, check CI status, or verify that changes don't break the build or test suite.
Step-by-step guide for adding a new platform implementation to DotSerial. Use when asked to add support for a new OS, transport, or connection type.
| name | nuget-pack |
| description | Pack and verify the DotSerial NuGet package. Use when asked to pack, publish, or verify the NuGet output for the DotSerial library. |
| allowed-tools | shell |
DotSerial uses MinVer for automatic versioning from git tags.
dotnet pack src/DotSerial -c Release -o ./artifacts
This produces:
artifacts/DotSerial.<version>.nupkg — the main packageartifacts/DotSerial.<version>.snupkg — the symbol package (for source debugging)# List files inside the nupkg (it is a zip)
unzip -l ./artifacts/DotSerial.*.nupkg
v prefix: e.g., v1.2.0 → 1.2.01.2.0-preview.3<Version> or <VersionPrefix> in the csprojgit tag v1.2.0
git push origin v1.2.0
The CI publish.yml workflow will then automatically pack and push to NuGet.
Check that:
net10.0, net10.0-android, net10.0-iosREADME.md is embedded as the package readme.snupkg is generated alongside the .nupkg