Skip to content
wshaddix avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers solution layout, project references, folder conventions, and .slnx migration from .sln files
  • Includes shared MSBuild config in Directory.Build.props and Directory.Build.targets plus Directory.Packages.props for central package versions
  • Enforces central package versions so project files reference packages without a Version attribute
  • 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 -y

Installs 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

Similar to Project Structure

More .NET & C#