Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Sun Life Financial
CA
Last activity: 23 Aug 2019 16:11 EDT
Use Relative Paths in Deployment Files
When deploying a project you have the option to include external files as part of your deployment. In the .osproj file, it looks something like this
<!-- Deployment -->
<DeploymentFiles>|Desktop|\Private\LocalData\TLS_Messages.xml</DeploymentFiles>
Is there a way to set up that path to be relative to the current project path?
There are a few environment variables that can be used (|Desktop|, |Application|, etc.) but there doesn't seem to be one for the current project path.
In another configuration item, ProjectReference, the path accepts '..' as a way to move up the chain of folders, I tried the same syntax for DeploymentFiles but it failed, is there another way to achieve this?
<ProjectReference Include="..\..\RA-Common\RA-Common\RA-Common.osproj">