I'm trying to setup a virtual directory using msbuild and the msbuild community tasks but cannot find a way how to specify a relative path which is outside the $(MSBuildStartupDirectory)
.
My project is structured like this:
c:\proj\ src\ website (this is where the virtual dir should point to) build\ build.proj (this is the msbuild file)
What I'd like to do is something like this (note that $(MSBuildStartupDirectory)
points to c:\proj\build
):
<WebDirectoryCreate
VirtualDirectoryName="website"
VirtualDirectoryPhysicalPath="$(MSBuildStartupDirectory)\..\src\website" />
Unfortunately this doesn't work - the '..' is not resolved and and the virtual dir then points to c:\proj\build\..\src\website
.
Can anyone point me a hint how to work with (relative) paths in msbuild?