Skip to content

Commit b80b838

Browse files
committed
fix build csharp for macos
1 parent 3874b16 commit b80b838

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xmake/rules/csharp/xmake.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@
114114
--
115115
rule("csharp.build")
116116
set_sourcekinds("cs")
117+
on_load(function (target)
118+
-- dotnet always outputs .dll for libraries, and no prefix
119+
if target:is_shared() or target:is_static() then
120+
target:set("prefixname", "")
121+
target:set("extension", ".dll")
122+
end
123+
end)
117124
on_config("config")
118125
on_build("build")
119126
on_install("install")

0 commit comments

Comments
 (0)