diff --git a/src/Helpers/ProjectHelpers.cs b/src/Helpers/ProjectHelpers.cs index 957dde1..3f9eceb 100644 --- a/src/Helpers/ProjectHelpers.cs +++ b/src/Helpers/ProjectHelpers.cs @@ -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;