Skip to content
Permalink
Browse files

[Design] VisualStudio.Project doesn't need a reference to Solution an…

…ymore
  • Loading branch information
xen2 committed Aug 29, 2018
1 parent f486035 commit a3bbc24653bd5c64146b0cf384672f496db5069a
@@ -151,7 +151,7 @@ public static void SaveSolution(PackageSession session, ILogger log)
}

// Remove projects that are no longer available on the disk
var projectToRemove = solution.Projects.Where(project => !project.IsSolutionFolder && !File.Exists(project.FullPath)).ToList();
var projectToRemove = solution.Projects.Where(project => !project.IsSolutionFolder && !File.Exists(project.GetFullPath(solution))).ToList();
foreach (var project in projectToRemove)
{
solution.Projects.Remove(project);
@@ -174,8 +174,8 @@ public static void SaveSolution(PackageSession session, ILogger log)
if (packageFolder == null)
{
// Create this package as a Solution Folder
packageFolder = new Project(solution,
(Guid)package.Id,
packageFolder = new Project(
package.Id,
KnownProjectTypeGuid.SolutionFolder,
package.Meta.Name,
package.Meta.Name,
@@ -208,7 +208,7 @@ public static void SaveSolution(PackageSession session, ILogger log)
var projectRelativePath = project.Location.MakeRelative(solutionDir);

// Create this package as a Solution Folder
projectInSolution = new Project(solution,
projectInSolution = new Project(
project.Id,
KnownProjectTypeGuid.CSharp,
project.Location.GetFileNameWithoutExtension(),

0 comments on commit a3bbc24

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