diff options
| -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)) |
