Skip to content
aaronontheweb avatar

Dotnet Project Structure

Modern .NET project scaffolding covering .slnx solutions, shared build props, central package versions, SourceLink, and SDK pinning.

CCM score
61 of 100
skills.sh installs
731
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers solution layout with the .slnx format, Directory.Build.props, Directory.Packages.props, SourceLink, RELEASE_NOTES.md versioning, and global.json SDK pinning
  • Explains how to migrate existing .sln files with dotnet sln migrate and warns against keeping both formats in one repository
  • Provides a Directory.Build.props template with shared metadata, C# language settings, warnings-as-errors, and a dynamic copyright year
  • Designed for teams starting a new .NET solution or standardizing build configuration across multiple projects

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill dotnet-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

Related Skills

  • dotnet-local-tools - Managing local .NET tools with dotnet-tools.json
  • microsoft-extensions-configuration - Configuration validation patterns

Solution File Format (.slnx)

The .slnx format is the modern XML-based solution file format introduced in .NET 9. It replaces the traditional .sln format.

Benefits Over Traditional .sln

Aspect.sln (Legacy).slnx (Modern)
FormatCustom text formatStandard XML
ReadabilityGUIDs, cryptic syntaxClean, human-readable
Version controlHard to diff/mergeEasy to diff/merge
EditingIDE requiredAny text editor

Version Requirements

Details

Repository
github.com/aaronontheweb/dotnet-skills
Category
.NET & C#
First seen
Jun 3, 2026

Questions

What does the dotnet-project-structure skill help with?

It guides modern .NET project setup, including the .slnx solution format, Directory.Build.props, central package management, SourceLink, version management with RELEASE_NOTES.md, and SDK pinning with global.json. It is aimed at developers setting up new .NET solutions or configuring shared build properties across projects.

How do I install the dotnet-project-structure skill?

Run npx -y skills add aaronontheweb/dotnet-skills --skill dotnet-project-structure -y in a project. Once installed, the agent can use this skill to set up solution files, shared build settings and package versions.

Where does dotnet-project-structure rank in its category?

It sits in the .NET & C# category on Claude Marketplaces, in the top 100 of that category page. Other skills in the category include dotnet-backend-patterns, dotnet-best-practices and nuget-manager, while this one covers project layout and build configuration.

Does the skill explain how to migrate from .sln to .slnx?

Yes, the SKILL.md covers migrating existing solutions with dotnet sln migrate and notes that .sln and .slnx files should not both stay in one repository. It also shows creating new .slnx solutions on .NET 9 and .NET 10.

Which related skills work alongside dotnet-project-structure?

The skill points to dotnet-local-tools for managing local .NET tools with dotnet-tools.json, and microsoft-extensions-configuration for configuration validation patterns. Both cover areas adjacent to project structure.

More from aaronontheweb/dotnet-skills

All 34

Similar to Dotnet Project Structure

More .NET & C#