diff options
| author | xq114 <[email protected]> | 2022-02-14 14:10:11 +0800 |
|---|---|---|
| committer | xq114 <[email protected]> | 2022-02-14 14:10:11 +0800 |
| commit | cd2ce73cda749e93b6a53fd03c96136e903296c0 (patch) | |
| tree | cacb16e087d5abf062aa834dbe2c6112cd452e9f | |
| parent | 496204b4285a78456d54d26e34f0c70dfa5fe7e0 (diff) | |
make vsxmake slnfile consistent
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 3 |
1 files changed, 1 insertions, 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()) |
