मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)5.8k · #14607

resolve-project-references

यह क्या करती है

यह स्किल समझाती है कि .NET build रिपोर्ट में ResolveProjectReferences चरण अक्सर असली काम नहीं, बल्कि इंतज़ार का समय दिखाता है, और असली धीमेपन की ओर इशारा करती है। यह उन डेवलपर के लिए है जो धीमी build रिपोर्ट में यह चरण सबसे ऊपर देखते हैं।

कब इस्तेमाल करें

  • ✓जब build प्रदर्शन सारांश में ResolveProjectReferences सबसे महंगा चरण दिखे।
  • ✓जब डेवलपर सीधे ResolveProjectReferences को तेज़ करना चाहे।
  • ✓जब एक चरण बिल्ड का ज़्यादातर समय लेता लगे और आपको जानना हो कि वह असली है या नहीं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/dotnet/skills/blob/main/plugins/dotnet-msbuild/skills/resolve-project-references/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरी build रिपोर्ट कहती है कि ResolveProjectReferences ज़्यादातर समय लेता है। क्या मुझे उस चरण को अनुकूलित करना चाहिए?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट समझाता है कि रिपोर्ट किया गया समय दूसरे projects के build होने का इंतज़ार भी शामिल करता है, फिर उन चरणों की ओर इशारा करता है जहाँ असली काम होता है।

तकनीकी सामग्री (मूल 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 की ओर इशारा करती है, जो दिखाता है कि हर चरण अपने-आप कितना काम करता है।

क्या यह build गति की सामान्य गाइड है?

नहीं। सामान्य build प्रदर्शन के लिए एक अलग diagnostics स्किल बेहतर है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills