본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.8k · #14653

msbuild

하는 일

이 스킬은 .NET 프로젝트의 MSBuild 문제를 위한 시작점입니다. 빌드 실패를 문제 해결하고, 느린 빌드를 분석하고, 빌드 파일을 검토한 뒤, 각각에 맞는 집중된 안내를 적용합니다. 원인을 설명할 수 없는 빌드 문제가 있는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓.NET 빌드가 실패했는데 오류 메시지만으로 원인이 분명하지 않을 때.
  • ✓빌드가 느려서 어느 단계가 가장 많은 시간을 쓰는지 알고 싶을 때.
  • ✓사용자 정의 빌드 파일, 가져오기 훅, 빌드 확장 지점에 대한 조언이 필요할 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet/skills/msbuild/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet/skills/msbuild/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 .NET 솔루션이 빌드에 실패하는데 오류 메시지로는 이유를 모르겠습니다. 원인을 찾아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 작업이 문제 해결, 성능, 검토 중 무엇인지 정하고, 맞는 안내를 읽은 뒤, 수정을 제안하기 전에 실제 프로젝트와 빌드 증거를 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

MSBuild troubleshooting

This is the entry skill. Choose troubleshooting, performance, or authoring review, then read only the relevant local references. The references retain the content and identities of the original MSBuild skills, with correctness fixes; they are not separate skills to activate.

Start with the task and evidence

For tasks that need a checkout, discover the relevant project/solution, shared build files, SDK selection, and repository build instructions in the current workspace. Preserve the original command, working directory, configuration, target framework, runtime identifier, global properties, and target. Ask only for consequential information that cannot be discovered.

An existing .binlog can be the only available artifact. Analyze it before requesting a new build; paths inside it do not prove a checkout exists locally. For a self-contained static review or advisory question, use the supplied XML and relevant references; do not require a checkout, restore, build, or binlog.

For a mixed request, fix correctness before measuring successful builds, and keep authoring review separate from a performance experiment. A failing test assertion after a successful build is not an MSBuild failure.

1. Troubleshoot build issues

Goal: identify the independent root causes and make the smallest repair, not a broad cleanup.

Situation Read Action
A build failed and a binary log exists binlog-failure-analysis Replay the log with MSBuild; connect errors to the responsible project instance, target, and task. Separate root causes from cascading failures.
The failure needs evidence and no matching log exists binlog-generation, then failure analysis Capture the original invocation once, verify the artifact, and analyze it.
A project/build file has incorrect conditions, items, properties, or output paths msbuild-antipatterns Select the relevant catalog entries and check their exceptions before changing anything.
Imports or build hooks are missing, overwritten, or run in the wrong order extension-points Inspect the import contract, discovery order, and packed NuGet layout rather than hiding a required failure.
Outputs are stale or required work is skipped incremental-build Prove which input, output, timestamp, item, or condition makes the decision wrong. Correctness takes priority over speed.

After a repair, rerun the original failing scenario and check affected dependents. If only a log is available, provide an evidence-backed proposed fix and say it was not applied or rebuilt. Do not turn a targeted failure investigation into solution-wide authoring cleanup.

2. Diagnose and improve build performance

Goal: measure the reported scenario, identify its bottleneck, change one cause, and compare equivalent builds without losing required behavior.

  1. Reuse matching measurements. If they are missing, establish the relevant baseline before editing configuration; do not time a failed build as a successful baseline.
  2. Classify evaluation versus target/task execution. Inclusive target totals and dependency waits are not additive wall time or proof of CPU utilization.
  3. Follow the measured branch below. Do not apply every optimization in every reference.
  4. Repeat the same scenario, command, input change, and instrumentation. Report spread/noise and correctness checks; an isolated faster run is not proof of improvement.
Situation Read Keep distinct
No trustworthy before/after measurements, or a baseline/controlled optimization is requested build-perf-baseline Cold-output, warm changed-input, and no-change builds; restore/cache state; ordinary Build versus forced Rebuild.
The expensive work is not yet identified, or compiler/analyzer/reference/restore time dominates build-perf-diagnostics Actual task cost versus orchestration waits, overlapping durations, and missing instrumentation.
Time is spent before target execution, in globs, imports, or property evaluation eval-performance Evaluation versus execution; legitimate versus acciden
자주 묻는 질문

오래된 프로젝트를 SDK 형식으로 바꾸나요?

아니요. 레거시 프로젝트 마이그레이션은 다른 스킬이 다룹니다.

제 코드가 체크아웃되어 있어야 하나요?

프로젝트 문제라면 작업 공간을 살펴보고, 제공된 빌드 XML 검토라면 그 텍스트만으로 작업합니다.

가장 작은 변경을 하나요?

네. 근본 원인을 고치는 가장 작은 수정을 우선합니다.

상세 정보

작성자의 원본 설명

Use only for MSBuild failure investigation, build-performance analysis, or review of existing build XML/extension contracts. A plan to convert a working legacy/non-SDK project to SDK style or migrate packages.config is a project-system migration, NOT a build-file review: do not activate, even to check scope. Framework/API upgrades are also excluded. Activate for advisory Import/Exists hook and NuGet packed-import questions even without a checkout or failed build; .csproj/.fsproj/.vbproj/.props/.targets conditions; custom-target inputs/outputs; .binlog capture/replay; failing dotnet build/resto

repo: dotnet/skills

인기도

GitHub 스타
5.8k
순위
#14653
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬