Project Structure
Guidelines for organizing .NET solutions with .slnx files, centralized build props, and central package management.
- CCM score
- 47 of 100
- skills.sh installs
- 546
- GitHub stars
- 94
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers solution layout, project references, folder conventions, and
.slnxmigration from.slnfiles - Includes shared MSBuild config in
Directory.Build.propsandDirectory.Build.targetsplusDirectory.Packages.propsfor central package versions - Enforces central package versions so project files reference packages without a
Versionattribute - Designed for setting up new .NET solutions or consolidating build settings and SourceLink across multiple projects
Install
$ npx -y skills add wshaddix/dotnet-skills --skill project-structure -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
.NET Project Structure and Build Configuration
When to Use This Skill
Use this skill when:
- Setting up a new .NET solution with modern best practices
- Configuring centralized build properties across multiple projects
- Implementing central package version management
- Setting up SourceLink for debugging and NuGet packages
- Automating version management with release notes
- Pinning SDK versions for consistent builds
Recommended Solution Layout
MyApp/
├── .config/
│ └── dotnet-tools.json # Local .NET tools
├── .editorconfig
├── .gitignore
├── global.json
├── nuget.config
├── Directory.Build.props
├── Directory.Build.targets
├── Directory.Packages.props
├── MyApp.slnx # .NET 9+ SDK / VS 17.13+
├── src/
│ ├── MyApp.Core/
│ │ └── MyApp.Core.csproj
│ ├── MyApp.Api/
│ │ ├── MyApp.Api.csproj
│ │ ├── Program.cs
│ │ └── appsettings.json
│ └── MyApp.Infrastructure/
│ └── MyApp.Infrastructure.csproj
└── tests/
├── MyApp.UnitTests/
│ └── MyApp.UnitTests.csproj
└── MyApp.IntegrationTests/
└── MyApp.IntegrationTests.csproj
Details
- Repository
- github.com/wshaddix/dotnet-skills
- Categories
- .NET & C#, DevOps & Cloud
- First seen
- Jun 3, 2026
More from wshaddix/dotnet-skills
All 13- Dotnet Domain Modeling543
- Serialization533
- Microsoft Extensions Configuration532
- Package Management521
- Dotnet Testing Strategy632
- Dotnet Xunit632
- Modern Csharp Coding Standards603
- Csharp Wolverinefx577
- Testcontainers574
- Microsoft Extensions Dependency Injection560
- Logging Observability554
- Validation Patterns548
Similar to Project Structure
More .NET & C#dotnet-project-structureaaronontheweb/dotnet-skills731 installsModern .NET project scaffolding covering .slnx solutions, shared build props, central package versions, SourceLink, and SDK pinning.
package-managementwshaddix/dotnet-skills521 installsNuGet package management guide covering Central Package Management, dependency resolution, and CLI-driven version updates for .NET solutions.
directory-build-organizationdotnet/skills5.4K installsCentralizes shared MSBuild policy, package versions, and build flags across multi-project .NET repos using Directory.Build files.
convert-to-cpmdotnet/skills5.1K installsCentralize NuGet package versions into Directory.Packages.props for .NET projects and solutions, with baseline and binlog validation.
microsoft-extensions-configurationwshaddix/dotnet-skills532 installsStartup-validated .NET configuration patterns using IValidateOptions, data annotations, and environment-aware checks.
nuget-managergithub/awesome-copilot15K installsGuardrailed NuGet workflow that adds, removes, and updates package versions in .NET solutions.