summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/dotnet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/core/tools/dotnet.lua')
-rw-r--r--xmake/modules/core/tools/dotnet.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/dotnet.lua b/xmake/modules/core/tools/dotnet.lua
index 62d9a63d2..9a502b616 100644
--- a/xmake/modules/core/tools/dotnet.lua
+++ b/xmake/modules/core/tools/dotnet.lua
@@ -68,7 +68,7 @@ function nf_warning(self, level)
end
-- get the .csproj file from source files
-function _get_csprojfile(sourcefiles, opt)
+function _get_csprojfile(opt)
local target = opt and opt.target
if target then
local csprojfile = target:data("csharp.csproj")
@@ -100,7 +100,7 @@ function buildargv(self, sourcefiles, targetkind, targetfile, flags, opt)
local argv = {"build"}
-- add .csproj file
- local csprojfile = _get_csprojfile(sourcefiles, opt)
+ local csprojfile = _get_csprojfile(opt)
if csprojfile then
table.insert(argv, csprojfile)
end