diff options
| author | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-20 22:33:30 +0800 |
| commit | 2b0964deaf94355eea91dff12d017525b49c3737 (patch) | |
| tree | 8fc1d3decacbf9d2371ef58f96ebbad13316627e /xmake/rules/csharp/xmake.lua | |
| parent | faac0865a79ef38c47bb81d7fa3b42f05ace5538 (diff) | |
remove native_aot
Diffstat (limited to 'xmake/rules/csharp/xmake.lua')
| -rw-r--r-- | xmake/rules/csharp/xmake.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/csharp/xmake.lua b/xmake/rules/csharp/xmake.lua index 603af08c3..9a0a6e43b 100644 --- a/xmake/rules/csharp/xmake.lua +++ b/xmake/rules/csharp/xmake.lua @@ -115,14 +115,10 @@ rule("csharp.build") set_sourcekinds("cs") on_load(function (target) + -- dotnet always outputs .dll for libraries, and no prefix if target:is_shared() or target:is_static() then - -- dotnet always outputs without lib prefix target:set("prefixname", "") - -- managed libraries use .dll, NativeAOT uses native format (.dylib/.so/.dll) - local publish_aot = target:values("csharp.publish_aot") - if not publish_aot then - target:set("extension", ".dll") - end + target:set("extension", ".dll") end end) on_config("config") |
