MSBuild Anti-Pattern Detector
Audits and optimizes MSBuild files by detecting common anti-patterns and providing automated fix recipes.
This skill serves as a comprehensive catalog for reviewing, auditing, and cleaning up MSBuild-based project files including .csproj, .props, and .targets. It identifies specific code smells—such as using shell commands instead of built-in tasks, hardcoded absolute paths, or redundant SDK defaults—and provides concrete BAD-to-GOOD transformation examples. Use this skill to improve build reliability, ensure cross-platform compatibility, and reduce maintenance overhead in .NET environments.
Key Features
01Standardizes project files by removing redundant SDK defaults and manual globs
021,215 GitHub stars
03Guidance on Central Package Management and Directory.Build organization
04Provides concrete XML transformation recipes for immediate code improvement
05Identifies 13+ specific MSBuild anti-patterns with detailed explanations
06Optimizes build performance by detecting missing incremental build attributes
Use Cases
01Auditing legacy .NET projects to modernize build scripts and property management
02Cleaning up repository-wide configuration drift across multiple project files
03Ensuring MSBuild files are cross-platform compatible for Linux/macOS CI runners