Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

dotnet Plugin

Everyday maintenance automation and one-shot upgrade commands for .NET 10+, C# 14 applications with Aspire MCP integration.

Prerequisites

  • .NET 10 SDK or later
  • Optional: .NET Aspire 13.1+ (for Aspire MCP server)
  • Recommended: microsoft plugin for full MCP functionality (NuGet, Azure, Microsoft Learn)

Installation

/plugin install dotnet@claude-code-plugins

Commands

Command Description
/dotnet:build Smart build with fuzzy project matching and optional --fix for MCP-driven error resolution
/dotnet:clean Clean solution with optional --deep for thorough artifact removal
/dotnet:coverage-report Generate and analyze code coverage reports
/dotnet:fix-warnings Analyze and fix compiler/analyzer warnings
/dotnet:install-sdk Install .NET SDK versions via winget/brew
/dotnet:install-tool Install .NET global/local tools
/dotnet:nullable-audit Audit nullable reference type annotations
/dotnet:publish Publish application with various deployment profiles
/dotnet:solution-health Analyze solution for orphaned projects, circular deps, TFM inconsistencies
/dotnet:update-dotnet-version Update target framework and SDK versions
/dotnet:upgrade-nuget-packages Upgrade NuGet packages with compatibility checking

Agents

Agent Description
build-fixer Analyzes build errors (CS*, MSB*, NU*, NETSDK*), researches solutions via MCP, applies fixes

Usage Examples

Build with automatic error fixing

/dotnet:build --fix

Health check for solution

/dotnet:solution-health

Upgrade all NuGet packages

/dotnet:upgrade-nuget-packages --all

Install specific SDK

/dotnet:install-sdk 10.0

Aspire MCP

This plugin includes the Aspire MCP server configuration (.mcp.json), which exposes Aspire resources, logs, traces, and commands to Claude Code.

Prerequisites:

  • .NET Aspire 13.1+
  • Aspire CLI (aspire command) - included with Aspire.AppHost.Sdk

Usage: The Aspire MCP server starts via aspire mcp start and is available automatically when the plugin is installed.

Build-Fixer MCP Integration

The build-fixer agent uses MCP servers for intelligent error resolution:

  • microsoft-learn: Official .NET documentation and code samples (via microsoft plugin)
  • perplexity: General search for edge cases and community solutions (via research plugin)
  • context7: Library-specific documentation (via research plugin)

Note: Install the microsoft and research plugins for full build-fixer functionality.

Related Plugins

  • microsoft: Microsoft MCP servers (NuGet, Azure, Microsoft Learn) - recommended
  • research: Research MCP servers (perplexity, context7) - recommended for build-fixer
  • claude-ecosystem: Core Claude Code functionality
  • code-quality: Code review and linting

License

MIT