lr.Dotnet.AiFixBuildTool.any
2026.3.24.1719
dotnet add package lr.Dotnet.AiFixBuildTool.any --version 2026.3.24.1719
NuGet\Install-Package lr.Dotnet.AiFixBuildTool.any -Version 2026.3.24.1719
<PackageReference Include="lr.Dotnet.AiFixBuildTool.any" Version="2026.3.24.1719" />
<PackageVersion Include="lr.Dotnet.AiFixBuildTool.any" Version="2026.3.24.1719" />
<PackageReference Include="lr.Dotnet.AiFixBuildTool.any" />
paket add lr.Dotnet.AiFixBuildTool.any --version 2026.3.24.1719
#r "nuget: lr.Dotnet.AiFixBuildTool.any, 2026.3.24.1719"
#:package lr.Dotnet.AiFixBuildTool.any@2026.3.24.1719
#addin nuget:?package=lr.Dotnet.AiFixBuildTool.any&version=2026.3.24.1719
#tool nuget:?package=lr.Dotnet.AiFixBuildTool.any&version=2026.3.24.1719
lr-ai-fix-build
AI-powered .NET build fixer using coding agent CLIs (Claude Code, GitHub Copilot, Gemini CLI). Fixes build errors and updates NuGet packages.
Usage
Run it directly with dnx:
dnx -y lr-ai-fix-build <command>
Commands
fix-build
Fix build errors using a coding agent CLI. Runs dotnet restore and dotnet build, then uses the agent to diagnose and fix any errors.
dnx -y lr-ai-fix-build fix-build
dnx -y lr-ai-fix-build fix-build --working-dir /path/to/project
update-packages
Update NuGet packages via lr-nuget-update, then fix any resulting build errors.
dnx -y lr-ai-fix-build update-packages
dnx -y lr-ai-fix-build update-packages --filter "Microsoft*,Serilog*"
dnx -y lr-ai-fix-build update-packages --working-dir /path/to/project
Options
| Option | Description |
|---|---|
--working-dir |
Target project directory (defaults to current directory) |
--agent |
Coding agent to use: claude, copilot, or gemini. Auto-detected if not specified (prefers claude > copilot > gemini). |
--cli-path |
Path to the coding agent CLI executable (auto-detected if not specified) |
--filter |
Comma-separated glob patterns to filter packages (update-packages only) |
How it works
- fix-build: Restores packages, attempts a build (retries once on first failure), then uses the coding agent to read errors, inspect source files, and apply targeted fixes until the build succeeds.
- update-packages: Runs
dnx -y lr-nuget-updateto update packages (with optional--filter), then runs the fix-build flow to resolve any breaking changes.
Supported agents
The tool auto-detects which coding agent CLI is available, preferring Claude Code > GitHub Copilot > Gemini CLI. Override with --agent:
lr-ai-fix-build fix-build --agent copilot
lr-ai-fix-build fix-build --agent gemini --cli-path /usr/local/bin/gemini
Installation
If you prefer to have it installed globally:
dotnet tool install -g lr.Dotnet.AiFixBuildTool
Usage after installation:
lr-ai-fix-build fix-build
lr-ai-fix-build update-packages --filter "Microsoft*"
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.3.24.1719 | 133 | 3/24/2026 |