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