summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/rules/csharp/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/rules/csharp/xmake.lua b/xmake/rules/csharp/xmake.lua
index 4030c7457..9a0a6e43b 100644
--- a/xmake/rules/csharp/xmake.lua
+++ b/xmake/rules/csharp/xmake.lua
@@ -114,6 +114,13 @@
--
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
+ target:set("prefixname", "")
+ target:set("extension", ".dll")
+ end
+ end)
on_config("config")
on_build("build")
on_install("install")