gittools/gitversion/dotnet-dev
Claude Code and agent skill by gittools/gitversion
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Expert guidance for .NET development in this repository. Use this skill for building, testing, debugging, and understanding project structure, coding conventions, dependency injection patterns, and testing practices.
Install
npx vskill@latest install gittools/gitversion/dotnet-devSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
.NET Development Skills
Expert guidance for .NET development in this repository.
Build & Test Commands
Package Management
This repository uses Central Package Management via Directory.Packages.props.
Adding/Updating Packages
Important: Always update versions in src/Directory.Packages.props, not in individual .csproj files.
Directory.Packages.props Structure
Project Structure
src/- Main solution with production code and testsnew-cli/- New CLI implementation (separate solution)build/- Build automation (Cake-based)docs/- Documentation
Key Projects
| Project | Purpose | |
|---|---|---|
GitVersion.Core | Core version calculation logic | |
GitVersion.App | CLI application | |
GitVersion.Configuration | Configuration file handling | |
GitVersion.Output | Output formatters (JSON, BuildServer) | |
GitVersion.BuildAgents | CI/CD platform integrations | |
GitVersion.MsBuild | MSBuild task integration | |
GitVersion.LibGit2Sharp | Git repository abstraction |
Coding Conventions
Primary Constructors
Prefer primary constructors with readonly field assignments:
Dependency Injection
Use constructor injection with ILogger<T> for logging:
Logging
Use Microsoft.Extensions.Logging with Serilog:
Nullable Reference Types
All projects use nullable reference types. Handle nullability explicitly:
File-Scoped Namespaces
Use file-scoped namespaces:
Testing
Test Project Naming
- Test projects mirror source projects:
GitVersion.Core→GitVersion.Core.Tests
Test Frameworks
- NUnit - Primary test framework
- NSubstitute - Mocking framework
- Shouldly - Assertion library
Test Patterns
Configuration Files
Supported Names
GitVersion.ymlGitVersion.yaml.GitVersion.yml.GitVersion.yaml
Schema Location
JSON schemas are in schemas/ directory for validation.
Build Agents
Build agent integrations write environment variables with GitVersion_ prefix:
Common Tasks
Running the CLI Locally
Debugging Tests
Checking for Errors
Public API Management
This repository uses Microsoft.CodeAnalysis.PublicApiAnalyzers to track public API surface.
Rules
- `PublicAPI.Unshipped.txt`: All new or modified public APIs go here
- `PublicAPI.Shipped.txt`: Only deletions are allowed; never add or modify entries directly
Workflow
- When adding new public APIs, they automatically get flagged and should be added to
PublicAPI.Unshipped.txt - When modifying existing APIs, move the old entry from
PublicAPI.Shipped.txttoPublicAPI.Unshipped.txt(marked as
removed) and add the new signature to PublicAPI.Unshipped.txt
- Only remove entries from
PublicAPI.Shipped.txtwhen an API is being deleted - During release, unshipped APIs get moved to shipped via the
mark-shipped.ps1script
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/dotnet-dev/SKILL.md
Popularity
- Repository stars
- 3,091
- Repository forks
- 663
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gittools/gitversion/dotnet-dev)