Build the RevitMCP Revit add-in for one or all Revit versions (2022-2026) using the unified RevitMCP.csproj
Build the RevitMCP Revit add-in using the unified RevitMCP.csproj and Nice3point.Revit.Sdk.
| Version | Build Config | .NET |
|---|---|---|
| 2022 | Release.R22 | Framework 4.8 |
| 2023 | Release.R23 | Framework 4.8 |
| 2024 | Release.R24 | Framework 4.8 |
| 2025 | Release.R25 | .NET 8 |
| 2026 | Release.R26 | .NET 8 |
--version {year} → Build that specific version directly (e.g. --version 2024)--all → Build all 5 versions sequentially, report pass/fail for each--list → Print the version matrix and exitMCP/RevitMCP.csproj by searching from the current directory upwardcd into the MCP/ directorydotnet build -c Release.R{YY} RevitMCP.csproj where {YY} = last 2 digits (e.g. 2024 → R24, 2022 → R22)MCP/bin/Release.R{YY}/RevitMCP.dll was created or updated (e.g. bin/Release.R24/RevitMCP.dll for Revit 2024)/deploy-addon --version {version} as next step--allBuild all versions in order: 2022 → 2023 → 2024 → 2025 → 2026. Continue even if one fails (do not stop on failure). Show a summary table at the end:
✅ 2022 (Release.R22) — succeeded
✅ 2023 (Release.R23) — succeeded
✅ 2024 (Release.R24) — succeeded
❌ 2025 (Release.R25) — FAILED
✅ 2026 (Release.R26) — succeeded
| Error | Response |
|---|---|
RevitMCP.csproj not found | Tell user to run from project root, not a subdirectory |
dotnet not installed | Show: "Install .NET SDK: https://dot.net" |
| Build failed | Show last 30 lines of build output, highlight the error line |
bin/Release.R{YY}/RevitMCP.dll missing after success | Warn user, show full build output |