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

msbuild

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

यह स्किल .NET प्रोजेक्ट में MSBuild समस्याओं के लिए शुरुआती बिंदु है। यह फ़ेल होते बिल्ड ठीक करने, धीमे बिल्ड का विश्लेषण करने और बिल्ड फ़ाइलों की समीक्षा में मदद करती है, और हर काम के लिए केंद्रित मार्गदर्शन लागू करती है। यह उन डेवलपर्स के लिए है जिनकी बिल्ड समस्या समझ में नहीं आती।

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

  • ✓जब .NET बिल्ड फ़ेल हो और एरर संदेश से कारण साफ़ न हो।
  • ✓जब बिल्ड धीमा हो और आप जानना चाहते हों कि कौन-से चरण सबसे ज़्यादा समय लेते हैं।
  • ✓जब आपको कस्टम बिल्ड फ़ाइलों, इम्पोर्ट हुक या बिल्ड एक्सटेंशन पॉइंट पर सलाह चाहिए।

Skill का लिंक

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

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

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

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

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

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

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

“मेरा .NET सॉल्यूशन बिल्ड नहीं होता और एरर संदेश कारण नहीं बताता। क्या आप कारण ढूँढ सकते हैं?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
2/11/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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