public DnxProject FindProject(ProjectId projectId)
 {
     if (Init(projectId))
     {
         return(solution.FindProjectByProjectJsonFileName(frameworkProject.Project.Path));
     }
     return(null);
 }
        static DnxProject FindProjectByProjectJsonFileName(string fileName)
        {
            Solution solution = IdeApp.ProjectOperations.CurrentSelectedSolution;

            if (solution == null)
            {
                return(null);
            }

            DnxProject project = solution.FindProjectByProjectJsonFileName(fileName);

            if (project != null)
            {
                return(project);
            }

            LoggingService.LogWarning(String.Format("Unable to find project by json file. '{0}'", fileName));
            return(null);
        }