public static ProjectSnapshot GetProjectWithFilePath(this ProjectSnapshotManager snapshotManager, string filePath)
        {
            var projects = snapshotManager.Projects;

            for (var i = 0; i < projects.Count; i++)
            {
                var project = projects[i];
                if (FilePathComparer.Instance.Equals(filePath, project.FilePath))
                {
                    return(project);
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        public static ProjectSnapshot GetProjectWithFilePath(this ProjectSnapshotManager snapshotManager, string filePath)
        {
            var projects = snapshotManager.Projects;

            for (var i = 0; i < projects.Count; i++)
            {
                var project = projects[i];
                if (string.Equals(filePath, project.UnderlyingProject.FilePath, StringComparison.OrdinalIgnoreCase))
                {
                    return(project);
                }
            }

            return(null);
        }