Force Visual Studio inserts relative file link paths

I'm currently writing a TypeScript application, and I'm trying to add links to other files in my solution by dragging the file from Solution Explorer to the TypeScript file I'm working on.

Until the last week, visual studio inserted the following code at the beginning of my file:

/// <reference path="lib/lib.d.ts" /> 

However, now it inserts a path similar to the following:

 /// <reference path="file:///C:/TFS/Branch/scripts/lib/lib.d.ts" /> 

I need relative paths for my work, because the project needs to work on several machines, is there any way to get visual studio to create relative paths instead of absolute paths?

Thanks in advance!

Griffork.

+4
source share
1 answer

I switched to the Typescript project and started working. I think the problem was how I created my web project.

0
source

All Articles