Exemplo n.º 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();
         }
     });
 }
Exemplo n.º 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);
                    }
                }
            });
        }
Exemplo n.º 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);
                    }
                }
            });
        }
Exemplo n.º 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))
		{
		}