What problem does it solve?
This Skill helps diagnose and fix MSBuild import and hook patterns, review and fix extension point anti-patterns, and make builds extensible for other projects.
Core Features & Use Cases
- CustomBefore/CustomAfter Hooks: Learn about hooks for SDKs, NuGet packages, repos, and users to inject custom logic.
- Wildcard Import Directories: Understand wildcard import directories and how they are sorted alphabetically.
- Import Gating: Discover control properties that gate wildcard imports.
- NuGet Package Build Extension Layout: Learn about the layout of NuGet package build extensions.
- Source Tree vs Packed Layout: Distinguish between source and packed layouts in NuGet packages.
- Import Guard Pattern: Understand the import guard pattern in
.targets files.
- Directory.Build Discovery: Learn about MSBuild's directory tree search for
Directory.Build.props.
- Creating Your Own Extension Point: Follow a guide to create custom extension points.
- Common Pitfalls: Avoid common pitfalls like missing
Exists() guards and overwriting properties.
Quick Start
Use the extension-points skill to review the MSBuild import patterns in your Directory.Build files and identify potential anti-patterns.