Skip to content

Commit

Permalink
Support PackageReferences in WPF projects (#3585)
Browse files Browse the repository at this point in the history
* Consolidate old and new temporary assembly compilation in to a single task
  • Loading branch information
ryalanms committed Dec 7, 2020
1 parent bc5c9ff commit 9e0a1f4
Show file tree
Hide file tree
Showing 5 changed files with 626 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1575,19 +1575,11 @@ private string ParentFolderPrefix
{
get
{
string parentFolderPrefix = string.Empty;
if (TargetPath.StartsWith(SourceFileInfo.SourcePath, StringComparison.OrdinalIgnoreCase))
{
string relPath = TargetPath.Substring(SourceFileInfo.SourcePath.Length);
relPath += SourceFileInfo.RelativeSourceFilePath;
string[] dirs = relPath.Split(new Char[] { Path.DirectorySeparatorChar });
for (int i = 1; i < dirs.Length; i++)
{
parentFolderPrefix += PARENTFOLDER;
}
}

return parentFolderPrefix;
#if NETFX
return PathInternal.GetRelativePath(TargetPath, SourceFileInfo.SourcePath, StringComparison.OrdinalIgnoreCase) + Path.DirectorySeparatorChar;
#else
return Path.GetRelativePath(TargetPath, SourceFileInfo.SourcePath) + Path.DirectorySeparatorChar;
#endif
}
}

Expand Down
Loading

0 comments on commit 9e0a1f4

Please sign in to comment.