summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-08-23 16:14:33 +0800
committerOpportunityLiu <[email protected]>2019-08-23 16:14:36 +0800
commit4cb812b408d75c0e2941106c2e525611e6ffdc89 (patch)
treeeaf90675095d3751e5018a68db9ac4b6cdfeef8d
parent01e7af7426fc0d1b461efbe57d9ed137fb1894ee (diff)
fix path resolve
-rw-r--r--xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props b/xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props
index df0b5f9e5..f0ee8495e 100644
--- a/xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props
+++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.Defaults.props
@@ -7,9 +7,9 @@
<XmakeScriptDirResolved>$(XmakeScriptDir)</XmakeScriptDirResolved>
<!-- resolve if they are relative paths -->
+ <XmakeProgramDirResolved Condition="!$([System.IO.Path]::IsPathRooted('$(XmakeProgramDirResolved)'))">$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeProgramDirResolved)'))</XmakeProgramDirResolved>
<XmakeProjectDirResolved Condition="!$([System.IO.Path]::IsPathRooted('$(XmakeProjectDirResolved)'))">$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeProjectDirResolved)'))</XmakeProjectDirResolved>
<XmakeScriptDirResolved Condition="!$([System.IO.Path]::IsPathRooted('$(XmakeScriptDirResolved)'))">$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeScriptDirResolved)'))</XmakeScriptDirResolved>
- <XmakeBuilDirResolved Condition="!$([System.IO.Path]::IsPathRooted('$(XmakeBuilDirResolved)'))">$([System.IO.Path]::GetFullPath('$(MSBuildProjectDirectory)\$(XmakeBuilDirResolved)'))</XmakeBuilDirResolved>
<!-- normalize paths -->
<XmakeProgramDir>$([System.IO.Path]::GetFullPath('$(XmakeProgramDirResolved)'))</XmakeProgramDir>