用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/csharpfritz/Aspire-Minecraft --skill nuget-packaging命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
How to create reference documentation for complex coordinate systems and building constraints
Manage Azure DevOps resources via CLI including projects, repos, pipelines, builds, pull requests, work items, artifacts, and service endpoints. Use when working with Azure DevOps, az commands, devops automation, CI/CD, or when user mentions Azure DevOps CLI.
Prevents subsystems from modifying blocks within placed building volumes using 3D bounding box clipping
基于 SOC 职业分类
正在显示 SKILL.md
| name | nuget-packaging |
| description | NuGet packaging patterns for the Aspire.Hosting.Minecraft package |
| domain | dotnet-nuget |
| confidence | high |
| source | manual |
These patterns apply to the single NuGet package produced by this repo: Fritz.Aspire.Hosting.Minecraft (PackageId). The RCON library (Aspire.Hosting.Minecraft.Rcon) is embedded into this package. The Worker project is not packaged — it runs as a standalone service. They ensure packages are NuGet.org-ready with reproducible builds.
Only Aspire.Hosting.Minecraft is packable (IsPackable=true). The Rcon project is embedded via PrivateAssets="All" on the ProjectReference plus TargetsForTfmSpecificBuildOutput to include the DLL in the lib folder. The Worker project is IsPackable=false — it's a standalone service consumers reference directly.
All PackageReference entries must have exact pinned versions (e.g., Version="13.1.0"). Never use Version="*" or version ranges. NuGet.org rejects packages with floating version references and they break reproducible builds.
Shared metadata (Authors, License, RepositoryUrl) and build hardening properties live in Directory.Build.props at the repo root. Individual csproj files only add project-specific properties (PackageId, Version, Description, PackageTags, IsPackable).
Every packable project inherits these from Directory.Build.props:
GenerateDocumentationFile — ships XML docs in the nupkgEnablePackageValidation — catches breaking API changes between versionsDeterministic — ensures byte-identical builds from same sourceContinuousIntegrationBuild (CI-only) — embeds correct source paths for SourceLinkEmbedUntrackedSources — ensures all source files are available in SourceLinkMicrosoft.SourceLink.GitHub — enables debugger source mapping to GitHubThe single packable project (Aspire.Hosting.Minecraft) has its own README.md in the project directory, included in the nupkg via:
<None Include="README.md" Pack="true" PackagePath="\" />
The PackageReadmeFile property in Directory.Build.props is set to README.md. Non-packable projects do not pack READMEs.
dotnet restore
dotnet build -c Release
dotnet pack -c Release -o nupkgs
Check for: zero warnings on src projects, correct package sizes, no floating versions in generated nuspec.
Version="*" — will be rejected by NuGet.org and breaks reproducibilityEnablePackageValidation — won't catch breaking API changes between releasesMicrosoft.NET.Sdk.Worker and runs as a separate process; it can't be a DLL inside the hosting package