Conventions for structuring .NET solutions: .slnx format, shared build props, central package management and naming.
- What it does
- This skill provides .NET solution and project structure conventions. It documents the .slnx solution format, Directory.Build.props for shared MSBuild settings, Directory.Packages.props for central package management, global.json SDK pinning, global usings, and naming conventions. It also lists anti-patterns and a decision guide for choosing a project layout. It is guidance only and produces no files or scripts.
- When to use it
- Use it when setting up a new .NET solution, adding projects, configuring build properties, or when the user mentions solution structure, .slnx, Directory.Build.props, central package management, Directory.Packages.props, global usings, .editorconfig, project layout or naming conventions.
- Requirements
- No tools, packages or credentials are required; it is instructions only and ships no scripts. The guidance targets .NET projects using MSBuild, NuGet and the .NET SDK.