Skip to content

Commit

Permalink
Fixes #102 by looking for the negative equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed Dec 20, 2021
1 parent 263f114 commit 760d710
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 760d710

Please sign in to comment.