Skip to content

Commit

Permalink
[xBuild] Fix Import elements with the combination of wildcards and ab…
Browse files Browse the repository at this point in the history
…solute paths

Used in the .targets files shipped with VS2013
  • Loading branch information
Gustavo Guerra committed Sep 29, 2013
1 parent 29bb48c commit f7a787b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,17 @@ public void Scan ()
return;

int offset = 0;
string full_path;
if (Path.IsPathRooted (name)) {
full_path = name;
baseDirectory = new DirectoryInfo (Path.GetPathRoot (name));
if (IsRunningOnWindows)
// skip the "drive:"
offset = 1;
} else {
full_path = Path.GetFullPath (Path.Combine (Environment.CurrentDirectory, name));
}

string full_path = Path.GetFullPath (Path.Combine (Environment.CurrentDirectory, include_item.ItemSpec));
fileInfo = ParseIncludeExclude (separatedPath, offset, baseDirectory);

int wildcard_offset = full_path.IndexOf ("**");
Expand Down

0 comments on commit f7a787b

Please sign in to comment.