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