Exemplo n.º 1
0
        private Project GetProject(string path)
        {
            Project project;

            Project.TryGetProject(path, out project);
            return(project);
        }
Exemplo n.º 2
0
        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;
            }));
        }
Exemplo n.º 3
0
        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);
        }