From a058333a5ce80508fd7088a5def1bbbcadd2a0c1 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 16 Mar 2026 23:55:21 +0800 Subject: remove find csproj files --- xmake/rules/csharp/modules/itemgroups.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xmake/rules/csharp/modules/itemgroups.lua b/xmake/rules/csharp/modules/itemgroups.lua index 93e25ea53..b03110ea9 100644 --- a/xmake/rules/csharp/modules/itemgroups.lua +++ b/xmake/rules/csharp/modules/itemgroups.lua @@ -39,13 +39,9 @@ function _collect_cs_sourcefiles(context) end function _collect_project_references(context) - if context.opt.skip_deps then - return {} - end local references = {} - for _, depname in ipairs(table.wrap(context.target:get("deps"))) do - local dep = context.target:dep(depname) - if dep and context.opt.is_csharp_target and context.opt.is_csharp_target(dep) then + for _, dep in ipairs(context.target:orderdeps()) do + if context.opt.is_csharp_target and context.opt.is_csharp_target(dep) then local depcsproj = context.opt.generate_csproj_file and context.opt.generate_csproj_file(dep) if depcsproj then table.insert(references, _normalize_relative(context.csprojdir, depcsproj)) -- cgit v1.3.1