From cd2ce73cda749e93b6a53fd03c96136e903296c0 Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Mon, 14 Feb 2022 14:10:11 +0800 Subject: make vsxmake slnfile consistent --- xmake/plugins/project/vsxmake/getinfo.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index 2b0264021..37afb8dd2 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -351,11 +351,10 @@ function main(outputdir, vsinfo) vsinfo.projectdir = project.directory() vsinfo.sln_projectfile = path.relative(project.rootfile(), vsinfo.solution_dir) local projectfile = path.filename(project.rootfile()) - vsinfo.slnfile = path.filename(project.directory()) + vsinfo.slnfile = project.name() or path.filename(project.directory()) -- write only if not default if projectfile ~= "xmake.lua" then vsinfo.projectfile = projectfile - vsinfo.slnfile = path.basename(projectfile) end vsinfo.xmake_info = format("xmake version %s", xmake.version()) -- cgit v1.3.1