msbuild-csproj

Installation
SKILL.md

MSBuild CSPROJ Structuring for Modern .NET

Overview

This skill provides explicit, step-by-step guidance for structuring MSBuild .csproj files for modern .NET using Directory.Build.props, Central Package Management (CPM), and the dotnet CLI. All scaffolding and all modifications to .csproj files MUST be performed with the dotnet CLI. The goal is to keep individual .csproj files minimal while centralizing build properties, package versions, and shared configuration at the repository root.

Modern .NET SDK-style projects use a declarative XML format that is dramatically simpler than the legacy verbose format. Combined with Directory.Build.props for shared properties and Directory.Packages.props for centralized version management, a well-structured repository eliminates redundancy and version drift across projects.

Prerequisites

  • .NET 9+ SDK installed
  • dotnet CLI available in PATH
  • Basic understanding of MSBuild and NuGet

Rules You Must Follow

Installs
1
GitHub Stars
10
First Seen
1 day ago
msbuild-csproj — tyler-r-kendrick/agent-skills