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

resolve-project-references

하는 일

이 스킬은 .NET 빌드 보고서의 ResolveProjectReferences 단계가 실제 작업이 아니라 대기 시간을 보여 주는 경우가 많다고 설명하고, 진짜 병목을 가리킵니다. 느린 빌드 보고서 맨 위에 이 단계가 보이는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓빌드 성능 요약에서 ResolveProjectReferences가 가장 비싼 단계로 보일 때.
  • ✓개발자가 ResolveProjectReferences를 직접 빠르게 만들고 싶을 때.
  • ✓한 단계가 빌드 시간의 대부분을 차지하는 것처럼 보여서 그것이 실제인지 알아야 할 때.

스킬 링크

https://github.com/dotnet/skills/blob/main/plugins/dotnet-msbuild/skills/resolve-project-references/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 빌드 보고서에는 ResolveProjectReferences가 대부분의 시간을 차지한다고 나옵니다. 그 단계를 최적화해야 할까요?”

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

작동 방식

에이전트가 보고된 시간이 다른 프로젝트 빌드를 기다리는 시간을 포함한다고 설명한 뒤, 실제 작업이 일어나는 단계로 안내합니다.

기술 내용 (원본 SKILL.md)

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

Misleading ResolveProjectReferences Time

Prevent misguided optimization of ResolveProjectReferences by explaining that its reported time is wall-clock wait time, not CPU work.

When to Use

  • ResolveProjectReferences appears as the most expensive target in the Target Performance Summary
  • A developer is trying to optimize ResolveProjectReferences directly
  • Build performance analysis shows a single target consuming 50-80% of total build time

When Not to Use

  • General build performance optimization (use build-perf-diagnostics instead)
  • The bottleneck is clearly a different target (e.g., Csc, ResolveAssemblyReference)
  • The user has not yet captured a binlog or performance summary

Inputs

Input Required Description
Build log or binlog Yes A diagnostic build log or binlog containing the Target Performance Summary

Workflow

Step 1: Confirm the misleading symptom

Verify that ResolveProjectReferences appears as the top target in the Target Performance Summary. This is the misleading metric.

Step 2: Explain why it is misleading

The reported time includes waiting for dependent projects to build while the MSBuild node is yielded (see dotnet/msbuild#3135). During this wait, the node may be doing useful work on other projects. The target itself does very little work.

Step 3: Redirect to task self-time

Use the Task Performance Summary to identify the real bottleneck.

Primary: binlog MCP (preferred)

Use the binlog MCP server expensive_tasks tool to get task self-time rankings directly from the binlog.

Fallback: text-log replay (when MCP is unavailable)

dotnet msbuild build.binlog -noconlog -fl "-flp:v=diag;logfile=full.log;performancesummary"
grep "Task Performance Summary" -A 50 full.log

Focus on self-time of actual tasks:

  • Csc: see build-perf-diagnostics skill (Section 2: Roslyn Analyzers)
  • ResolveAssemblyReference: see build-perf-diagnostics skill (Section 1: RAR)
  • Copy: see build-perf-diagnostics skill (Section 4: File I/O)
  • Serialization bottlenecks: see build-parallelism skill

Validation

  • Task Performance Summary was used instead of Target Performance Summary
  • ResolveProjectReferences was not set as the optimization target
  • A concrete task (e.g., Csc, Copy, ResolveAssemblyReference) was identified as the true bottleneck
자주 묻는 질문

그 단계는 항상 중요하지 않나요?

이 스킬은 그 단계가 보고하는 시간이 오해를 부른다고 설명합니다. 대기 중에는 실제로 하는 일이 거의 없기 때문입니다.

대신 무엇을 봐야 하나요?

각 단계가 스스로 하는 작업을 보여 주는 작업 자체 시간(task self-time)을 가리킵니다.

일반적인 빌드 속도 안내서인가요?

아니요. 일반적인 빌드 성능에는 별도의 진단 스킬이 더 알맞습니다.

상세 정보

작성자의 원본 설명

Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries. Activate when ResolveProjectReferences appears as the most expensive target and developers are trying to optimize it directly. Explains that the reported time includes wait time for dependent project builds and is misleading. Guides users to focus on task self-time instead. Do not activate for general build performance -- use build-perf-diagnostics instead.

repo: dotnet/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬