Skip to content

Commit

Permalink
Merge pull request #103 from timheuer/master
Browse files Browse the repository at this point in the history
Fixes #102 by looking for the negative equality.
  • Loading branch information
madskristensen authored Dec 20, 2021
2 parents f28475e + 760d710 commit a146e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/ProjectHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static ProjectItem AddFolders(Project project, string targetFolder)
DirectoryInfo root = new DirectoryInfo(project.GetRootFolder());
DirectoryInfo target = new DirectoryInfo(targetFolder);

while (target.FullName.Equals(root.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase))
while (!target.FullName.Equals(root.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase))
{
list.Add(target.Name);
target = target.Parent;
Expand Down

0 comments on commit a146e07

Please sign in to comment.