From 2b0964deaf94355eea91dff12d017525b49c3737 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 20 Mar 2026 22:33:30 +0800 Subject: remove native_aot --- xmake/rules/csharp/xmake.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'xmake/rules/csharp/xmake.lua') 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") -- cgit v1.3.1