/// <summary> /// Adds a project reference to a solution file under the solution dependencies solution folder. /// </summary> public static void AddProjectReferenceAsDependency(this SolutionFile solutionFile, SolutionFileProjectReference projectReference) { solutionFile.AddProjectReference(projectReference); solutionFile.AddProjectToDependenciesSolutionFolder(projectReference); }
public static void AddProjectReference(this SolutionFile solutionFile, string solutionFilePath, string projectFilePath) { var projectReference = SolutionFileProjectReference.NewNetCoreOrStandard(solutionFilePath, projectFilePath); solutionFile.AddProjectReference(projectReference); }