@dotnet/directory-build-organization

Guide for organizing MSBuild infrastructure with Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and Directory.Build.rsp. Only activate in MSBuild/.NET build context. USE FOR: structuring multi-project repos, centralizing build settings, implementing NuGet Central Package Management (CPM) with ManagePackageVersionsCentrally, consolidating duplicated properties across .csproj files, setting up multi-level Directory.Build hierarchy with GetPathOfFileAbove, understanding evaluation order (Directory.Build.props → SDK .props → .csproj → SDK .targets → Directory.Build.targets). Critical pitfall: $(TargetFramework) conditions in .props silently fail for single-targeting projects — must use .targets. DO NOT USE FOR: non-MSBuild build systems, migrating legacy projects to SDK-style (use msbuild-modernization), single-project solutions with no shared settings. INVOKES: no tools — pure knowledge skill.

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@dotnet/directory-build-organization/verified)](https://skillsafe.ai/skill/@dotnet/directory-build-organization/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@dotnet/directory-build-organization/installs)](https://skillsafe.ai/skill/@dotnet/directory-build-organization/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@dotnet/directory-build-organization/scan)](https://skillsafe.ai/skill/@dotnet/directory-build-organization/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@dotnet/directory-build-organization/eval)](https://skillsafe.ai/skill/@dotnet/directory-build-organization/)