Use this skill when scaffolding new .NET solutions or projects, configuring shared build properties, setting up NuGet Central Package Management, enforcing code style with .editorconfig, or choosing between .sln and .slnx solution formats. Always trigger when users ask about dotnet new templates, multi-project solution layout, Directory.Build.props, Directory.Packages.props, .editorconfig, global.json, TreatWarningsAsErrors, LangVersion, or anything about organizing a .NET repository from scratch—even if they don't mention any of those file names explicitly.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Use this skill when scaffolding new .NET solutions or projects, configuring shared build properties, setting up NuGet Central Package Management, enforcing code style with .editorconfig, or choosing between .sln and .slnx solution formats. Always trigger when users ask about dotnet new templates, multi-project solution layout, Directory.Build.props, Directory.Packages.props, .editorconfig, global.json, TreatWarningsAsErrors, LangVersion, or anything about organizing a .NET repository from scratch—even if they don't mention any of those file names explicitly.
.NET Scaffolding Skill
Use this skill to scaffold modern .NET solutions and projects correctly. The
non-obvious parts are covered in the reference files below — read the relevant
ones before generating or modifying any scaffolding files.
Quick decision tree
Question
Go to
Which dotnet new template to use? What options exist?
These are the baseline quality settings for every new .NET 10 solution. Do not
omit them — they represent the minimum for professional .NET development today.
✅ .slnx ❌ .sln (for new solutions)
✅ Directory.Build.props ❌ Repeating <TargetFramework> in every .csproj
✅ Directory.Packages.props ❌ Version attributes on <PackageReference>
✅ <LangVersion>latest</LangVersion> ❌ Pinning to a specific version number
✅ <Nullable>enable</Nullable> ❌ Missing or disabled nullable
✅ file-scoped namespaces ❌ braced namespace blocks