예제 #1
0
 /// <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();
         }
     });
 }
예제 #2
0
        /// <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);
                    }
                }
            });
        }
예제 #3
0
        /// <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);
                    }
                }
            });
        }
예제 #4
0
 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))
		{
		}