/// <summary> /// Add build dependency to ProjectContainerNode if IVsBuildDependency is supported by the nested project /// </summary> /// <param name="projectContainer">Project Container where we should add the build dependency</param> /// <param name="nestedProject">Nested project to set a build dependency against</param> private void AddBuildDependenyToNestedProject(IBuildDependencyUpdate projectContainer, IVsHierarchy nestedProject) { // Validate input Debug.Assert(projectContainer != null, "Project Container must not be null"); Debug.Assert(nestedProject != null, "Nested Project must not be null"); if (projectContainer == null || nestedProject == null) { // Invalid argument return; } // Create new NestedProjectBuildDependency NestedProjectBuildDependency dependency = new NestedProjectBuildDependency(nestedProject); projectContainer.AddBuildDependency(dependency); }