public static AbsoluteDirectoryPath Rebase(this AbsoluteDirectoryPath path, AbsoluteDirectoryPath from, AbsoluteDirectoryPath onto) { return(onto / path.RelativeTo(from)); }
void SetCacheDir(Project buildProject, AbsoluteDirectoryPath projectDir, AbsoluteDirectoryPath cacheDir) { buildProject.MutableProperties["CacheDirectory"] = new SourceValue(buildProject.Source, cacheDir.RelativeTo(projectDir).NativeRelativePath.ToUnixPath()); }