From 8aa975d2fc26c603146c933684aba299bd3dc60c Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 16 Mar 2026 23:48:44 +0800 Subject: improve to get csproj file --- xmake/modules/core/tools/dotnet.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/core/tools/dotnet.lua') 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 -- cgit v1.3.1