Token导航 LogoToken导航

Agent Skill · 开发

msbuild(msbuild 命令行)

msbuild 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

msbuild 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为权限未标注;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 1,969。

总安装 21,861周安装 893GitHub Stars 公开资料未说明下载 7,001核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:msbuild(msbuild 命令行)
来源仓库:https://github.com/thecybercore/msbuild
安装命令:
openclaw skills install msbuild
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install msbuild

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

提供 .NET/ASP.NET 项目的 MSBuild 命令行操作集。涵盖恢复、构建、测试、发布与 CI/CD 流程优化。按优先级排列 80 个常用命令,简化开发流程。msbuild 属于开发类 Skill,可作为该场景下的辅助能力补充。安装命令:openclaw skills install msbuild。

注意:需确认项目环境与依赖,避免误操作影响构建。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install msbuild;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

msbuild 怎么安装?

在终端执行 openclaw skills install msbuild。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

msbuild 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

msbuild 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

msbuild 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

msbuild 用的人多吗?

公开数据是累计安装 21,861 次,近一周安装 893 次,下载 7,001 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

msbuild 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
msbuild

msbuild 命令行 · 本页

21,861—权限未标注MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: Top 80 MSBuild Commands for .NET / ASP.NET (CLI)

Purpose

This skill provides a practical, prioritized set of the 80 most useful command templates for working with .NET / ASP.NET projects on the command line using MSBuild (via dotnet msbuild or msbuild). It mirrors a realistic day-to-day workflow: restore → build → test → publish/pack → diagnose → CI hardening.

Typical ASP.NET Developer Workflow (why these commands are prioritized)

A typical ASP.NET CLI workflow:

  1. Restore dependencies (often locked mode in CI)
  2. Build quickly (Debug) and reliably (Release)
  3. Test repeatedly (filters, logs, results dirs, no-build/no-restore in CI)
  4. Publish artifacts (RID, self-contained, single-file, trimming, ready-to-run)
  5. Package libraries (Pack), versioning
  6. Diagnose build issues (binlog, verbosity, preprocess, graph build)
  7. CI hardening (determinism, CI flags, node reuse, parallelism, reproducibility)

Ranking reflects frequency + impact in that flow.

Conventions

  • Prefer cross-platform: dotnet msbuild
  • On Windows with VS Build Tools you can swap to: msbuild
  • Targets: /t:<Target>
  • Properties: /p:Name=Value
  • Logging: /v:<level>, /bl[:file], /fl, /pp
  • Multiproc: /m[:n]
  • Note: dotnet test is included because it is the practical test CLI (it invokes MSBuild under the hood).

Top 80 Commands (1 = most important)

Replace MySolution.sln / src/MyWeb/MyWeb.csproj / tests/... as needed.

A) Restore / Build / Clean / Rebuild (daily)

1) Restore solution

dotnet msbuild MySolution.sln /t:Restore

2) Build solution (Debug)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Debug

3) Build solution (Release)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release

4) Clean solution

dotnet msbuild MySolution.sln /t:Clean /p:Configuration=Debug

5) Rebuild solution (Clean + Build)

dotnet msbuild MySolution.sln /t:Rebuild /p:Configuration=Release

6) Restore + Build in one call

dotnet msbuild MySolution.sln /restore /t:Build /p:Configuration=Debug

7) Build without restore (CI-friendly)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:Restore=false

8) Parallel build (max CPU)

dotnet msbuild MySolution.sln /t:Build /m /p:Configuration=Release

9) Quiet-ish CI output

dotnet msbuild MySolution.sln /t:Build /nologo /v:minimal /p:Configuration=Release

10) Build a single project

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:Configuration=Debug

11) Set Platform explicitly

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:Platform="Any CPU"

12) Treat warnings as errors

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:TreatWarningsAsErrors=true

13) Deterministic build

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:Deterministic=true

14) CI build mode (SourceLink/versioning behavior)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:ContinuousIntegrationBuild=true

15) Disable incremental up-to-date checks (force build behavior)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /p:DisableFastUpToDateCheck=true

16) Build with defined constants

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:Configuration=Debug /p:DefineConstants="TRACE;DEBUG;MYFLAG"

17) Set OutputPath (ad-hoc artifacts)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:Configuration=Release /p:OutputPath=artifacts/bin/

18) Set BaseIntermediateOutputPath (obj isolation / CI caching)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:Configuration=Release /p:BaseIntermediateOutputPath=artifacts/obj/

19) Disable shared compilation (debug odd build behavior)

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Debug /p:UseSharedCompilation=false

20) Show MSBuild version

dotnet msbuild -version

B) Tests (practical CLI; MSBuild-based)

21) Run tests (solution)

dotnet test MySolution.sln -c Release

22) Tests without build

dotnet test MySolution.sln -c Release --no-build

23) Tests without restore

dotnet test MySolution.sln -c Release --no-restore

24) Test a single test project

dotnet test tests/MyWeb.Tests/MyWeb.Tests.csproj -c Debug

25) Test filter by fully qualified name

dotnet test MySolution.sln -c Release --filter "FullyQualifiedName~MyNamespace"

26) Test filter by trait/category (example)

dotnet test MySolution.sln -c Release --filter "TestCategory=Integration"

27) TRX logger

dotnet test MySolution.sln -c Release --logger "trx"

28) Results directory

dotnet test MySolution.sln -c Release --results-directory artifacts/testresults

29) Collect coverage (cross-platform collector)

dotnet test MySolution.sln -c Release --collect "XPlat Code Coverage"

30) Increase test verbosity

dotnet test MySolution.sln -c Release -v normal

31) Blame/hang diagnostics

dotnet test MySolution.sln -c Release --blame

32) Run a specific test by name

dotnet test MySolution.sln -c Release --filter "Name=MySpecificTest"

C) Publish (ASP.NET core scenarios)

33) Publish (Release, framework-dependent)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release

34) Publish to a specific directory

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:PublishDir=artifacts/publish/

35) Publish with RuntimeIdentifier (RID)

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

36) Self-contained publish

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

37) Framework-dependent (explicit)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:SelfContained=false

38) Single-file publish

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

39) ReadyToRun publish

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:PublishReadyToRun=true

40) Trim publish (use with care)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:PublishTrimmed=true

41) Single-file + trim (advanced)

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

42) Stamp environment property (pattern; app must use it)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:EnvironmentName=Production

43) Publish with version stamping

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:Version=1.2.3

44) Publish with explicit TargetFramework (multi-TFM projects)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:TargetFramework=net8.0

45) Publish with CI properties

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:ContinuousIntegrationBuild=true /p:Deterministic=true

46) Publish: RID + self-contained + output

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

D) Pack / NuGet / Versioning

47) Pack a library

dotnet msbuild src/MyLib/MyLib.csproj /t:Pack /p:Configuration=Release

48) Pack to a custom output path

dotnet msbuild src/MyLib/MyLib.csproj /t:Pack /p:Configuration=Release /p:PackageOutputPath=artifacts/nuget/

49) Pack with version

dotnet msbuild src/MyLib/MyLib.csproj /t:Pack /p:Configuration=Release /p:Version=1.2.3

50) Set AssemblyVersion / FileVersion

dotnet msbuild src/MyLib/MyLib.csproj /t:Build /p:Configuration=Release /p:AssemblyVersion=1.2.0.0 /p:FileVersion=1.2.3.0

51) InformationalVersion (commit metadata)

dotnet msbuild src/MyLib/MyLib.csproj /t:Build /p:Configuration=Release /p:InformationalVersion=1.2.3+sha.abcdef

52) Restore generating packages.lock.json

dotnet msbuild MySolution.sln /t:Restore /p:RestorePackagesWithLockFile=true

53) Restore locked mode (fail if lock changes)

dotnet msbuild MySolution.sln /t:Restore /p:RestoreLockedMode=true

54) Restore using a custom NuGet.config

dotnet msbuild MySolution.sln /t:Restore /p:RestoreConfigFile=NuGet.config

55) Restore with custom packages folder (CI cache)

dotnet msbuild MySolution.sln /t:Restore /p:RestorePackagesPath=artifacts/nuget-packages

E) Diagnostics / Troubleshooting

56) Binary log (binlog) — best first step

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /bl

57) Binlog with specific path

dotnet msbuild MySolution.sln /t:Build /p:Configuration=Release /bl:artifacts/logs/build.binlog

58) Verbosity: detailed

dotnet msbuild MySolution.sln /t:Build /v:detailed

59) Verbosity: diagnostic (only when needed)

dotnet msbuild MySolution.sln /t:Build /v:diag

60) File logger (text log)

dotnet msbuild MySolution.sln /t:Build /fl /flp:logfile=artifacts/logs/build.log;verbosity=normal

61) Console logger summary + performance

dotnet msbuild MySolution.sln /t:Build /clp:Summary;PerformanceSummary

62) Preprocess project (expanded after imports)

dotnet msbuild src/MyWeb/MyWeb.csproj /pp:artifacts/logs/preprocessed.xml

63) Graph build for solutions

dotnet msbuild MySolution.sln /t:Build /graphBuild /p:Configuration=Release

64) Run a single target explicitly (example: Clean)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Clean /p:Configuration=Release

65) Show command lines (helps reproduce compiler invocation)

dotnet msbuild MySolution.sln /t:Build /m /v:minimal /clp:ShowCommandLine

66) Disable node reuse (CI stability)

dotnet msbuild MySolution.sln /t:Build /nr:false /p:Configuration=Release

67) Limit parallelism

dotnet msbuild MySolution.sln /t:Build /m:4 /p:Configuration=Release

F) Advanced build controls

68) Generic custom property pattern

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:Configuration=Release /p:MyCustomProperty=Value

69) Override restore sources (quick feed test)

dotnet msbuild MySolution.sln /t:Restore /p:RestoreSources="https://api.nuget.org/v3/index.json;https://myfeed/v3/index.json"

70) Disable implicit restore (full control)

dotnet msbuild MySolution.sln /t:Build /p:Restore=false /p:BuildProjectReferences=true

71) Build without project references (debugging)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Build /p:BuildProjectReferences=false

72) Publish using apphost (common for exe-style hosting)

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

73) Publish without apphost (edge cases)

dotnet msbuild src/MyWeb/MyWeb.csproj /t:Publish /p:Configuration=Release /p:UseAppHost=false

74) Restore with interactive auth (private feeds)

dotnet msbuild MySolution.sln /t:Restore /p:NuGetInteractive=true

75) Override MSBuild SDKs path (rare edge cases)

dotnet msbuild MySolution.sln /t:Build /p:MSBuildSDKsPath=/path/to/sdks

G) msbuild.exe variants (Windows / VS Build Tools)

76) Build solution with msbuild.exe

msbuild MySolution.sln /t:Build /p:Configuration=Release /m

77) Restore with msbuild.exe

msbuild MySolution.sln /t:Restore

78) Publish with msbuild.exe

msbuild src\MyWeb\MyWeb.csproj /t:Publish /p:Configuration=Release /p:PublishDir=artifacts\publish\

79) Binlog with msbuild.exe

msbuild MySolution.sln /t:Build /p:Configuration=Release /bl:artifacts\logs\msbuild.binlog

80) Preprocess with msbuild.exe

msbuild src\MyWeb\MyWeb.csproj /pp:artifacts\logs\preprocessed.xml
  • * *

How to use this skill

When you describe a goal (e.g., “Publish linux-x64 self-contained single-file”), the skill should output:

  • the top 3 relevant commands from this list,
  • the few MSBuild properties that matter most,
  • and one diagnostic command (usually /bl) to capture a binlog if something fails.

Caveats

  • Trim/ReadyToRun/SingleFile can have app-specific implications.
  • For build issues: rerun with /bl and inspect with MSBuild Structured Log Viewer.

平台分布

OpenClaw

86.23%
按下载量换算6,037

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills