重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/dotnet/skills --skill eval-performance有关 MSBuild 评估和执行模型的全面概述,请参阅 构建过程概述。
<Import>,从上到下评估 <PropertyGroup><ItemDefinitionGroup> 元数据默认值Include、Remove、Update 和通配符扩展的 <ItemGroup>广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
关键洞察:评估发生在任何目标运行之前。评估缓慢 = 即使无需编译,构建启动也会很慢。
dotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.loggrep -i 'Evaluation started\|Evaluation finished' full.logdotnet msbuild -pp:full.xml MyProject.csproj**/*.cs 这样的通配符会遍历整个目录树node_modules/、.git/、bin/、obj/ 等目录上使用通配符——涉及数百万个文件<DefaultItemExcludes> 排除大型目录src/**/*.cs 而非 **/*.cs<EnableDefaultItems>false</EnableDefaultItems>(会丢失 SDK 默认项)/pp 输出 → 搜索 <!-- Importing 注释以查看导入树grep 'Evaluation started.*ProjectName' full.log → 如果计数 > 1,检查是否存在不同的全局属性/graph)$([System.IO.File]::ReadAllText(...)) —— 每次评估都会读取文件dotnet msbuild -pp:full.xml每周安装次数
54
代码仓库
GitHub 星标数
725
首次出现
2026年3月10日
安全审计
安装于
github-copilot51
opencode51
kimi-cli49
gemini-cli49
amp49
cline49
For a comprehensive overview of MSBuild's evaluation and execution model, see Build process overview.
<Import>, evaluate <PropertyGroup> top-to-bottom<ItemDefinitionGroup> metadata defaults<ItemGroup> with Include, Remove, Update, glob expansionKey insight: evaluation happens BEFORE any targets run. Slow evaluation = slow build start even when nothing needs compiling.
dotnet msbuild build.binlog -noconlog -fl -flp:v=diag;logfile=full.loggrep -i 'Evaluation started\|Evaluation finished' full.logdotnet msbuild -pp:full.xml MyProject.csproj**/*.cs walk the entire directory treenode_modules/, .git/, bin/, obj/ — millions of files<DefaultItemExcludes> to exclude large directoriessrc/**/*.cs instead of **/*.cs<EnableDefaultItems>false</EnableDefaultItems> only as last resort (lose SDK defaults)/pp output → search for <!-- Importing comments to see import treegrep 'Evaluation started.*ProjectName' full.log → if count > 1, check for differing global properties/graph)$([System.IO.File]::ReadAllText(...)) during evaluation — reads file on every evaluationdotnet msbuild -pp:full.xmlWeekly Installs
54
Repository
GitHub Stars
725
First Seen
Mar 10, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot51
opencode51
kimi-cli49
gemini-cli49
amp49
cline49
TanStack Query v5 完全指南:React 数据管理、乐观更新、离线支持
2,500 周安装