summaryrefslogtreecommitdiff
path: root/xmake/rules/csharp/installcmd.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-17 22:49:09 +0800
committerruki <[email protected]>2026-03-17 22:49:09 +0800
commit0513166f8232518a428499aa0190e79027b8916c (patch)
treebde4c77ec1e67161f11f3e6de652159c7116ffb9 /xmake/rules/csharp/installcmd.lua
parent27bd61c80153023faec1ca3e3aee787e02f161dd (diff)
fix publish csharp
Diffstat (limited to 'xmake/rules/csharp/installcmd.lua')
-rw-r--r--xmake/rules/csharp/installcmd.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/rules/csharp/installcmd.lua b/xmake/rules/csharp/installcmd.lua
index 0bcc9ff37..25de92989 100644
--- a/xmake/rules/csharp/installcmd.lua
+++ b/xmake/rules/csharp/installcmd.lua
@@ -48,8 +48,9 @@ function main(target, batchcmds, opt)
end
-- get output directory based on target kind
+ -- on windows, shared libraries (dll) should also go to bindir
local outputdir
- if target:is_binary() then
+ if target:is_binary() or (target:is_shared() and target:is_plat("windows", "mingw")) then
outputdir = package:installdir("bin")
else
outputdir = package:installdir("lib")
@@ -62,7 +63,7 @@ function main(target, batchcmds, opt)
if csprojfile then
table.insert(argv, csprojfile)
end
- table.join2(argv, {"--nologo", "--no-build",
+ table.join2(argv, {"--nologo",
"--configuration", _get_configuration(),
"--output", publishdir})
local dotnet = _get_dotnet(target)