From 1d43868f83b094a3c8a22f83233bb0f7efbd4f24 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 18 Apr 2026 20:40:39 +0800 Subject: fix review issues --- tests/plugins/project/test.lua | 2 +- xmake/scripts/vsxmake/vsproj/Xmake.CSharp.targets | 10 +++++----- xmake/scripts/vsxmake/vsproj/Xmake.props | 8 ++++---- xmake/scripts/vsxmake/vsproj/Xmake.targets | 14 +++++++------- xmake/scripts/vsxmake/vsproj/Xmake.xml | 2 +- xmake/scripts/vsxmake/vsproj/templates/Xmake.Custom.props | 2 +- .../vsxmake/vsproj/templates/csproj/XmakePath(mode,arch) | 2 +- .../vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) | 2 +- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/plugins/project/test.lua b/tests/plugins/project/test.lua index 7de8835f1..40edd6a3a 100644 --- a/tests/plugins/project/test.lua +++ b/tests/plugins/project/test.lua @@ -74,7 +74,7 @@ function test_vsxmake_csharp(t) os.cd(tempdir) -- create a C# console project using xmake create - os.vrunv("xmake", {"create", "-l", "csharp", "console", projname}) + os.vrunv("xmake", {"create", "-l", "csharp", "-t", "console", projname}) os.cd(projname) -- create sln & csproj diff --git a/xmake/scripts/vsxmake/vsproj/Xmake.CSharp.targets b/xmake/scripts/vsxmake/vsproj/Xmake.CSharp.targets index 5c8825452..1b18b3a0c 100644 --- a/xmake/scripts/vsxmake/vsproj/Xmake.CSharp.targets +++ b/xmake/scripts/vsxmake/vsproj/Xmake.CSharp.targets @@ -4,21 +4,21 @@ - $(XmakeBuilDDir) + $(XmakeBuildDir) $(XmakeTargetDir) $(XmakeConfigDir) $(XmakeConfigFileDir) $(XmakeRunDir) - $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeBuilDDirResolved)')) + $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeBuildDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeTargetDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeConfigDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeConfigFileDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeRunDirResolved)')) - $([System.IO.Path]::GetFullPath('$(XmakeBuilDDirResolved)/')) + $([System.IO.Path]::GetFullPath('$(XmakeBuildDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeTargetDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeConfigDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeConfigFileDirResolved)/')) @@ -40,12 +40,12 @@ <_XmakeCommonFlags Condition="$(XmakeDiagnosis)">-D $(_XmakeCommonFlags.Trim()) <_XmakeCommonFlags>-y $(_XmakeCommonFlags.Trim()) $(_XmakeProjectFlag) - <_XmakeOutFlag>-o "$([MSBuild]::MakeRelative('$(XmakeProjectDirResolved)', '$(XmakeBuilDDirResolved)').TrimEnd('\').TrimEnd('/'))" + <_XmakeOutFlag>-o "$([MSBuild]::MakeRelative('$(XmakeProjectDirResolved)', '$(XmakeBuildDirResolved)').TrimEnd('\').TrimEnd('/'))" <_XmakeConfigFlags>$(XmakeConfigFlags.Trim()) <_XmakeConfigFlags>-p $(XmakePlat) -m $(XmakeMode) -a $(XmakeArch) $(_XmakeOutFlag) $(_XmakeConfigFlags.Trim()) - <_XmakeBuildFileFlags>$(_XmakeBuildFlags.Trim()) + <_XmakeBuildFileFlags>$(XmakeBuildFlags.Trim()) <_XmakeBuildFileFlags Condition="$(XmakeRebuildFile)">$(_XmakeBuildFileFlags.Trim()) -r <_XmakeCleanFlags>$(XmakeCleanFlags.Trim()) diff --git a/xmake/scripts/vsxmake/vsproj/Xmake.props b/xmake/scripts/vsxmake/vsproj/Xmake.props index e2bf58dfe..6bde5d90a 100644 --- a/xmake/scripts/vsxmake/vsproj/Xmake.props +++ b/xmake/scripts/vsxmake/vsproj/Xmake.props @@ -29,9 +29,9 @@ - $(XmakeProjectDir)\build - $(XmakeBuilDDir)\$(XmakePlat)\$(XmakeArch)\$(XmakeMode) - $(XmakeBuilDDir)\$(XmakePlat)\$(XmakeArch)\$(XmakeMode) + $(XmakeProjectDir)\build + $(XmakeBuildDir)\$(XmakePlat)\$(XmakeArch)\$(XmakeMode) + $(XmakeBuildDir)\$(XmakePlat)\$(XmakeArch)\$(XmakeMode) $(XMAKE_CONFIGDIR) $(XmakeProjectDir) @@ -171,7 +171,7 @@ $(XmakeLinkDirs);$(LibraryPath) $(XmakeTargetDir)\ - $(XmakeBuilDDir)\.vs\$(TargetName)\$(XmakeArch)\$(XmakeMode)\ + $(XmakeBuildDir)\.vs\$(TargetName)\$(XmakeArch)\$(XmakeMode)\ $(XmakeSourceDirs);$(SourcePath) diff --git a/xmake/scripts/vsxmake/vsproj/Xmake.targets b/xmake/scripts/vsxmake/vsproj/Xmake.targets index ec7ea3532..b95f3e0ba 100644 --- a/xmake/scripts/vsxmake/vsproj/Xmake.targets +++ b/xmake/scripts/vsxmake/vsproj/Xmake.targets @@ -8,21 +8,21 @@ - $(XmakeBuilDDir) + $(XmakeBuildDir) $(XmakeTargetDir) $(XmakeConfigDir) $(XmakeConfigFileDir) $(XmakeRunDir) - $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeBuilDDirResolved)')) + $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeBuildDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeTargetDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeConfigDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeConfigFileDirResolved)')) $([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeRunDirResolved)')) - $([System.IO.Path]::GetFullPath('$(XmakeBuilDDirResolved)/')) + $([System.IO.Path]::GetFullPath('$(XmakeBuildDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeTargetDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeConfigDirResolved)/')) $([System.IO.Path]::GetFullPath('$(XmakeConfigFileDirResolved)/')) @@ -44,12 +44,12 @@ <_XmakeCommonFlags Condition="$(XmakeDiagnosis)">-D $(_XmakeCommonFlags.Trim()) <_XmakeCommonFlags>-y $(_XmakeCommonFlags.Trim()) $(_XmakeProjectFlag) - <_XmakeOutFlag>-o "$([MSBuild]::MakeRelative('$(XmakeProjectDirResolved)', '$(XmakeBuilDDirResolved)').TrimEnd('\').TrimEnd('/'))" + <_XmakeOutFlag>-o "$([MSBuild]::MakeRelative('$(XmakeProjectDirResolved)', '$(XmakeBuildDirResolved)').TrimEnd('\').TrimEnd('/'))" <_XmakeConfigFlags>$(XmakeConfigFlags.Trim()) <_XmakeConfigFlags>-p $(XmakePlat) -m $(XmakeMode) -a $(XmakeArch) $(_XmakeOutFlag) $(_XmakeConfigFlags.Trim()) - <_XmakeBuildFileFlags>$(_XmakeBuildFlags.Trim()) + <_XmakeBuildFileFlags>$(XmakeBuildFlags.Trim()) <_XmakeBuildFileFlags Condition="$(XmakeRebuildFile)">$(_XmakeBuildFileFlags.Trim()) -r <_XmakeCleanFlags>$(XmakeCleanFlags.Trim()) @@ -156,7 +156,7 @@ MSBuild Properties: XmakeProgramFile: $(XmakeProgramFile) XmakeProjectDir: $(XmakeProjectDir) XmakeScriptDir: $(XmakeScriptDir) - XmakeBuilDDir: $(XmakeBuilDDir) + XmakeBuildDir: $(XmakeBuildDir) XmakeTargetDir: $(XmakeTargetDir) XmakeConfigDir: $(XmakeConfigDir) XmakeConfigFileDir: $(XmakeConfigFileDir) @@ -166,7 +166,7 @@ MSBuild Properties: XmakeProgramFile: $(XmakeProgramFileResolved) XmakeProjectDir: $(XmakeProjectDirResolved) XmakeScriptDir: $(XmakeScriptDirResolved) - XmakeBuilDDir: $(XmakeBuilDDirResolved) + XmakeBuildDir: $(XmakeBuildDirResolved) XmakeTargetDir: $(XmakeTargetDirResolved) XmakeConfigDir: $(XmakeConfigDirResolved) XmakeConfigFileDir: $(XmakeConfigFileDirResolved) diff --git a/xmake/scripts/vsxmake/vsproj/Xmake.xml b/xmake/scripts/vsxmake/vsproj/Xmake.xml index 3f5600ba6..9bccf1b28 100644 --- a/xmake/scripts/vsxmake/vsproj/Xmake.xml +++ b/xmake/scripts/vsxmake/vsproj/Xmake.xml @@ -66,7 +66,7 @@ Description="Set environment XMAKE_CONFIGDIR for xmake tasks" Subtype="folder" /> $(XmakeProjectDir)\.xmake --> - + diff --git a/xmake/scripts/vsxmake/vsproj/templates/csproj/XmakePath(mode,arch) b/xmake/scripts/vsxmake/vsproj/templates/csproj/XmakePath(mode,arch) index f724ee28c..7e423ee00 100644 --- a/xmake/scripts/vsxmake/vsproj/templates/csproj/XmakePath(mode,arch) +++ b/xmake/scripts/vsxmake/vsproj/templates/csproj/XmakePath(mode,arch) @@ -1,5 +1,5 @@ - #builddir# + #builddir# #configdir# #configfiledir# #targetdir# diff --git a/xmake/scripts/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) index f724ee28c..7e423ee00 100644 --- a/xmake/scripts/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) +++ b/xmake/scripts/vsxmake/vsproj/templates/vcxproj/XmakePath(mode,arch) @@ -1,5 +1,5 @@ - #builddir# + #builddir# #configdir# #configfiledir# #targetdir# -- cgit v1.3.1