diff options
| author | ruki <[email protected]> | 2026-03-16 23:55:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-16 23:55:21 +0800 |
| commit | a058333a5ce80508fd7088a5def1bbbcadd2a0c1 (patch) | |
| tree | 2feaca70f983dce2d764d60335613c643858b2f4 | |
| parent | 0c81f2b127c94a75257f05e24508209cc10419b0 (diff) | |
remove find csproj files
| -rw-r--r-- | xmake/rules/csharp/modules/itemgroups.lua | 8 |
1 files 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)) |
