private Project GetProject(string path) { Project project; Project.TryGetProject(path, out project); return(project); }
private static DnxProject GetProject(string path) { var cacheKey = Tuple.Create("Project", path); return(cache.Get <DnxProject>(cacheKey, ctx => { DnxProject project; DnxProject.TryGetProject(path, out project); return project; })); }
public bool TryResolveProject(string name, out Project project) { project = null; foreach (var searchPath in _searchPaths) { var projectPath = Path.Combine(searchPath, name); if (Project.TryGetProject(projectPath, out project)) { return(true); } } return(false); }