Skip to content

Commit a146e07

Browse files
Merge pull request #103 from timheuer/master
Fixes #102 by looking for the negative equality.
2 parents f28475e + 760d710 commit a146e07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/ProjectHelpers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public static ProjectItem AddFolders(Project project, string targetFolder)
156156
DirectoryInfo root = new DirectoryInfo(project.GetRootFolder());
157157
DirectoryInfo target = new DirectoryInfo(targetFolder);
158158

159-
while (target.FullName.Equals(root.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase))
159+
while (!target.FullName.Equals(root.FullName.TrimEnd(Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase))
160160
{
161161
list.Add(target.Name);
162162
target = target.Parent;

0 commit comments

Comments
 (0)