public override IProjectManager GetProjectManager(Project project) { IProjectManager projectManager; if (_projectManagers.TryGetValue(project, out projectManager)) { return projectManager; } var projectSystem = new MockVsProjectSystem(project); var localRepository = new PackageReferenceRepository( new MockFileSystem(project.GetFullPath()), project.Name, LocalRepository); projectManager = new ProjectManager( this, PathResolver, projectSystem, localRepository); _projectManagers[project] = projectManager; return projectManager; }
public override IProjectManager GetProjectManager(Project project) { IProjectManager projectManager; if (_projectManagers.TryGetValue(project, out projectManager)) { return(projectManager); } var projectSystem = new MockVsProjectSystem(project); var localRepository = new PackageReferenceRepository( new MockFileSystem(project.GetFullPath()), project.Name, LocalRepository); projectManager = new ProjectManager( this, PathResolver, projectSystem, localRepository); _projectManagers[project] = projectManager; return(projectManager); }