Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How can I prevent the generation of relative paths when creating a new Project from a custom Project Template

$
0
0
Hi,

I'm having a problem with a custom Project Template.

In our repository we have a custom Project Template which have links to to an external files in ProjectTemplate.csproj, for example: <Content Include="$(ProgramFiles)\MyCompany\Automation\bin\Xceed.Wpf.Toolkit.dll">.

When I create a new Project from this custom Project Template the Visual Studio replaces this link, using relative part to external file: <Content Include="..\..\..\..\..\..\..\Program Files %28x86%29\MyCompany\Automation\bin\Xceed.Wpf.Toolkit.dll">.

Can I change this behavior so, that the path has not been replaced to a relative ?

Repository with Project which is created from this custom Project Template can be located in different places and at different levels of nesting relative to the root directory on the User's machine and this can lead to build errors.

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>