void UpdateReferences(DnxProject project, FrameworkProject frameworkProject)
        {
            if (!project.IsCurrentFramework (frameworkProject.Framework, frameworkProject.Project.ProjectsByFramework.Keys))
                return;

            project.UpdateReferences (frameworkProject.FileReferences.Keys);
        }
        void UpdateReferences(DnxProject project, FrameworkProject frameworkProject)
        {
            if (!project.IsCurrentFramework(frameworkProject.Framework, frameworkProject.Project.ProjectsByFramework.Keys))
            {
                return;
            }

            project.UpdateReferences(frameworkProject.FileReferences.Keys);
        }
Пример #3
0
        public DnxProject FindProjectForCurrentFramework(ProjectId projectId)
        {
            if (!Init(projectId))
            {
                return(null);
            }

            DnxProject project = solution.FindProjectByProjectJsonFileName(frameworkProject.Project.Path);

            if (project.IsCurrentFramework(frameworkProject.Framework, frameworkProject.Project.ProjectsByFramework.Keys))
            {
                return(project);
            }
            return(null);
        }