What problem does it solve?
This Skill provides a comprehensive guide and best practices for organizing .NET projects, ensuring consistency, maintainability, and efficient build processes across a solution.
Core Features & Use Cases
- Solution Layout: Defines a clear, scalable directory structure for source code, tests, and build configurations.
- Centralized Build Properties: Utilizes
Directory.Build.props for consistent MSBuild settings across all projects.
- Central Package Management: Employs
Directory.Packages.props to manage NuGet package versions centrally, reducing conflicts and simplifying updates.
- SDK Version Pinning: Uses
global.json to enforce consistent .NET SDK versions for reproducible builds.
- Code Style Enforcement: Integrates
.editorconfig for maintaining uniform coding standards.
- SourceLink & Deterministic Builds: Configures SourceLink for better debugging and ensures deterministic build outputs.
- Use Case: When starting a new .NET microservices project with multiple related libraries and applications, this Skill ensures a robust and scalable foundation is laid from the outset.
Quick Start
Apply the recommended .NET project structure guidelines to a new solution.