/// <summary> /// Refresh all projects even though we may have only restored packages for one project since /// the packages may be used in other projects. /// </summary> void RefreshProjectReferences() { DispatchService.GuiDispatch(() => { foreach (IDotNetProject projectInSolution in solution.GetDotNetProjects()) { projectInSolution.DotNetProject.RefreshReferenceStatus(); } }); }
/// <summary> /// Refresh all projects even though we may have only restored packages for one project since /// the packages may be used in other projects. /// </summary> void RefreshProjectReferences(bool refreshMSBuildTargets) { Runtime.RunInMainThread(() => { foreach (IDotNetProject projectInSolution in solution.GetDotNetProjects()) { if (refreshMSBuildTargets) { projectInSolution.RefreshProjectBuilder(); } projectInSolution.DotNetProject.RefreshReferenceStatus(); if (refreshMSBuildTargets) { ReconnectAssemblyReferences(projectInSolution.DotNetProject); } } }); }
/// <summary> /// Refresh all projects even though we may have only restored packages for one project since /// the packages may be used in other projects. /// </summary> void RefreshProjectReferences(bool refreshMSBuildTargets) { DispatchService.GuiDispatch(() => { foreach (IDotNetProject projectInSolution in solution.GetDotNetProjects()) { if (refreshMSBuildTargets) { projectInSolution.RefreshProjectBuilder(); } projectInSolution.DotNetProject.RefreshReferenceStatus(); if (refreshMSBuildTargets) { ReconnectAssemblyReferences(projectInSolution.DotNetProject); } } }); }
public PackageRestorer(IPackageManagementSolution solution) : this(solution, solution.GetDotNetProjects().Select(p => p.DotNetProject)) { }
IEnumerable <IDotNetProject> GetOpenProjects() { return(Solution.GetDotNetProjects()); }
public PackageRestorer (IPackageManagementSolution solution) : this (solution, solution.GetDotNetProjects ().Select (p => p.DotNetProject)) { }