Skip to content

Commit

Permalink
[xharness] Resolve relative project references using the referencing …
Browse files Browse the repository at this point in the history
…project's directory. (#9252)

Otherwise it would end up being resolved from the current directory, which is
not dependable.
  • Loading branch information
rolfbjarne authored and mandel-macaque committed Oct 5, 2020
1 parent aad0fcd commit 87666e0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ List<string> GetNestedReferenceProjects (string csproj)
var fixPath = referenceProject.Replace ("\\", "/"); // do the replace in case we use win paths
result.Add (fixPath);
// get all possible references
if (!Path.IsPathRooted (fixPath))
fixPath = Path.Combine (Path.GetDirectoryName (csproj), fixPath);
result.AddRange (GetNestedReferenceProjects (fixPath));
}
return result;
Expand Down

0 comments on commit 87666e0

Please sign in to comment.