I have a large collection of existing Visual Studio projects/solutions located (due to historical reasons) at <drive>:\Folder\Source\, which contains all development resources. This location is controlled by Git (hosted in BitBucket.) I'm trying to move to the VS Online (VSTS) and set up the build there.
I'm able to successfully import the BitBucket repository to VSTS, but the problem is that many, many projects reference non-relative paths that include \Folder\Source\ within Include Directories, Linker Directories, Pre- and Post-build events, etc. Obviously, the builds in the cloud fail because the repository is only aware of the contents of Source\ folder.
I can think of two ways how to resolve this:
Change all possible path references in all projects to relative ones. This might not be feasible due to the number of projects and the number of changes required. Also, I don't have control over all projects, so it'd be a significant work to re-do all this stuff.
Move Git working directory two levels up - basically, controlling everything under
<drive>with only<drive>:\Folder\Source\un-ignored. This should be possible but doesn't look like a clean solution.
What would be really nice and should resolve this issue cleanly, if there'd be a way in VSTS to create two high-level empty folders Folder\Source and import the repository there. This would mimic the actual structure and make all work as is. Is there a way to do so in VSTS? Any other ways to resolve this problem?