msbuild-server

msbuild-server is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 73 tokens per session (595 once invoked), scanned A, a copy of msbuild-server, MIT.

A guide to using the MSBuild Server, a persistent process that keeps build information available between command-line builds. It is intended for repeated CLI builds, such as dotnet build.

In plain words
What is it for?
Use it to assess and enable MSBuild Server for local command-line work, continuous integration jobs, or repeated builds of the same repository.
Why use it?
It can reduce startup and repeated evaluation time when command-line builds are slower than builds from an IDE.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to assess and enable MSBuild Server for local command-line work, continuous integration jobs, or repeated builds of the same repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/msbuild-server
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add managedcode/dotnet-skills --skill msbuild-server
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for msbuild-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/msbuild-server/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/msbuild-server)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/msbuild-server"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/msbuild-server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for msbuild-server

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/msbuild-server"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/msbuild-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00595
Opus 5.5 $0.00029 $0.00238
Sonnet 5.5 $0.00015 $0.00119
Haiku 4.5 $0.00007 $0.00060

Measured 2mo ago against content hash 4b2d14f7bcef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

msbuild-server scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to msbuild-server — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

catalog/Tools/Official-DotNet-MSBuild/skills/msbuild-server/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MSBuild Server for CLI Caching

Use the MSBuild Server to cache evaluation results across CLI builds, matching the performance advantage Visual Studio gets from its long-lived MSBuild process.

When to Use

  • Small incremental builds from CLI (dotnet build) are slower than expected
  • Developers notice that VS builds are faster than CLI builds for the same project
  • CI agents run many sequential builds of the same repo

When Not to Use

  • IDE-based builds (Visual Studio already uses a long-lived MSBuild process)
  • One-off builds where cold-start overhead is acceptable
  • Build correctness issues are suspected (disable the server to isolate the problem)

Inputs

Input Required Description
Shell context No The shell where the environment variable will be set (bash, PowerShell, or Windows persistent)

Workflow

Step 1: Confirm CLI context

Verify the developer is building from the command line (dotnet build), not from Visual Studio or another IDE. The MSBuild Server provides no benefit inside an IDE.

Step 2: Set the environment variable

# Bash / CI
export MSBUILDUSESERVER=1

# PowerShell
$env:MSBUILDUSESERVER = "1"

# Windows (persistent)
setx MSBUILDUSESERVER 1

Step 3: Validate improvement

Run two sequential builds of the same project and compare times:

  1. First build (cold): dotnet build -- server starts, no cache benefit
  2. Second build (warm): dotnet build -- should be noticeably faster

The most noticeable improvement is in repos with many projects or complex Directory.Build.props chains.

Validation

  • MSBUILDUSESERVER=1 is set in the shell
  • Second sequential build is faster than the first
  • dotnet build-server shutdown followed by a rebuild confirms the server restarts cleanly

Common Pitfalls

Pitfall Solution
Expecting improvement in Visual Studio VS already uses long-lived MSBuild nodes; the server adds no benefit
Build correctness issues after enabling Run dotnet build-server shutdown to reset; if issues persist, disable the server
Server process using unexpected memory The server persists in background; shut down with dotnet build-server shutdown when idle

Read the full file on GitHub · 70 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 70 lines · 73 tokens per session scan A 4b2d14f7bcef

Subscribe to this mod's changes

msbuild-server is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 73 tokens to every session and 595 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to msbuild-server, differing in 0 lines, and is treated as a copy.

Related

msbuild-server compared with skills from other repositories

msbuild-server next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
msbuild-servermanagedcode/dotnet-skillsSkill52716d agoMITA73Claude Code, Codex
nx-ci-monitortech-leads-club/agent-skillsSkill7.2k3d agononeA74Claude Code, Codex
perf-lighthousetech-leads-club/agent-skillsSkill7.2k3d agononeA92Claude Code, Codex
gh-fix-citech-leads-club/agent-skillsSkill7.2k3d agononeA95Claude Code, Codex
nx-workspacetech-leads-club/agent-skillsSkill7.2k3d agononeA87Claude Code, Codex
pr-monitorronaknnathani/relaySkill4424d agoMITA62Claude Code, Codex
finding-filesSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A28Claude Code, Codex