跳到正文
TakoAPI
返回技能列表

msbuild

由 thecybercore 提供

Coding Agents & IDEs
445下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

This skill provides a practical, **prioritized** set of the **80 most useful command templates** for working.

描述

该技能的功能

A prioritized set of 80 MSBuild and dotnet CLI command templates for .NET and ASP.NET projects. Covers the full day-to-day workflow from restore and build through test, publish, NuGet packaging, and build diagnostics. Commands are ranked by frequency and impact.

Having 80 ranked templates in one place eliminates flag lookups across scattered docs when moving between restore, build, test, and publish tasks in the same session.

何时使用

  • Running a Release build with determinism flags for CI pipelines
  • Publishing a self-contained single-file executable for Linux
  • Capturing a binary log to diagnose a failing build
  • Running tests with code coverage collection and TRX report output
  • Packing a NuGet library and stamping it with a version number

示例工作流

输入

User asks: Publish my ASP.NET app as a self-contained single-file for Linux x64

智能体
  1. 1

    Identify the target project .csproj path

  2. 2

    Set /t:Publish with /p:Configuration=Release

  3. 3

    Add /p:RuntimeIdentifier=linux-x64 and /p:SelfContained=true

  4. 4

    Add /p:PublishSingleFile=true

  5. 5

    Suggest adding /bl to capture a binary log if the publish fails

输出

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:RuntimeIdentifier=linux-x64 /p:SelfContained=true /p:PublishSingleFile=true

安装

clawhub install thecybercore/msbuild

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接