What problem does it solve?
This Skill provides a comprehensive guide to establishing and maintaining a clean, consistent, and modern project structure for .NET solutions, improving maintainability and developer experience.
Core Features & Use Cases
- Solution Layout: Recommends standard directory structures (
src/, tests/) and solution file formats (.slnx, .sln).
- Build Configuration: Details the use of
Directory.Build.props, Directory.Build.targets, and Central Package Management (Directory.Packages.props) for shared MSBuild settings and dependency versioning.
- Code Quality: Covers
.editorconfig for consistent code style and analyzer integration.
- Reproducible Builds: Explains
global.json for SDK version pinning, nuget.config for package source management, and lock files for deterministic restores.
- Publishing: Guides on configuring SourceLink and deterministic builds for library publishing.
- Use Case: When starting a new .NET project, use this Skill to set up the recommended directory structure, configure
Directory.Build.props for common settings like Nullable and LangVersion, and establish Central Package Management.
Quick Start
Use the dotnet-project-structure skill to generate a recommended .NET solution layout including src and tests directories.