diff options
| author | ruki <[email protected]> | 2026-03-14 23:36:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-14 23:36:19 +0800 |
| commit | 8228de2b4957e8da78a158b4d80c1eb8c2a100b6 (patch) | |
| tree | 1e0466fcd418295554d2d01172f50a4ce5740cfb /xmake/rules/csharp | |
| parent | 20277e59408e4d93f4bb6f4ac518ed746f4eefba (diff) | |
fix flags
Diffstat (limited to 'xmake/rules/csharp')
| -rw-r--r-- | xmake/rules/csharp/build/target.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/rules/csharp/build/target.lua b/xmake/rules/csharp/build/target.lua index d97757dee..60b26602f 100644 --- a/xmake/rules/csharp/build/target.lua +++ b/xmake/rules/csharp/build/target.lua @@ -31,9 +31,15 @@ function build_sourcefiles(target, sourcebatch, opt) local targetfile = target:targetfile() -- get source files and kind - local sourcefiles = sourcebatch.sourcefiles + local sourcefiles = table.copy(sourcebatch.sourcefiles) local sourcekind = sourcebatch.sourcekind + -- prepend .csproj file so dotnet tool can find it + local csprojfile = target:data("csharp.csproj") + if csprojfile then + table.insert(sourcefiles, 1, csprojfile) + end + -- get depend file local dependfile = target:dependfile(targetfile) |
