Skip to content
Permalink
Browse files

[Assets] Keep solution folders, just remove package info

  • Loading branch information
xen2 committed Dec 13, 2018
1 parent 053fb65 commit 703ee5724dd9ee79bfb47347f7323d94e8c89b6d
@@ -723,14 +723,7 @@ private PackageContainer LoadProject(ILogger log, string filePath, bool isSystem
if ((packageProject as SolutionProject)?.FullPath == new UFile(filePath))
{
project = packageProject;

// Remove solution folder
foreach (var vsProject2 in VSSolution.Projects)
{
if (vsProject2.ParentGuid == vsPackage.Guid)
vsProject2.ParentGuid = Guid.Empty;
}
VSSolution.Projects.Remove(vsPackage);
PackageSessionHelper.RemovePackageSections(vsPackage);
}
}
}
@@ -129,5 +129,14 @@ internal static bool IsPackage(Project project, out string packagePathRelative)
}
return false;
}

internal static void RemovePackageSections(Project project)
{
if (project.IsSolutionFolder)
{
foreach (var solutionPackageIdentifier in SolutionPackageIdentifier)
project.Sections.Remove(solutionPackageIdentifier);
}
}
}
}

0 comments on commit 703ee57

Please sign in to comment.
You can’t perform that action at this time.