diff --git a/xmake/scripts/vsxmake/vsproj/Xmake.targets b/xmake/scripts/vsxmake/vsproj/Xmake.targets
index 68a9790f75..fd4da234ed 100644
--- a/xmake/scripts/vsxmake/vsproj/Xmake.targets
+++ b/xmake/scripts/vsxmake/vsproj/Xmake.targets
@@ -30,7 +30,7 @@
$([System.IO.Path]::GetFullPath('$(XmakeProgramDir)/'))
- $([System.IO.Path]::GetFullPath('$(XmakeProgramFile)/'))
+ $([System.IO.Path]::GetFullPath('$(XmakeProgramFile)'))
$([System.IO.Path]::GetFullPath('$(XmakeProjectDir)/'))
$([System.IO.Path]::GetFullPath('$(XmakeScriptDir)/'))