bool TryEnumerateProjects(Func <ExecutionEnvironment> env, out IEnumerable <ResharperProjectUpdater> projects) { projects = new ResharperProjectUpdater[0]; if (SolutionManager == null) { return(false); } ResharperLogger.Debug("SolutionManager found"); var solution = Solution; if (solution == null) { return(false); } ResharperLogger.Debug("Solution found"); var monitors = ( from proj in solution.GetAllProjects() where ProjectIsOpenWrapEnabled(proj) let scope = PathFinder.GetCurrentScope(_env.Descriptor.DirectoryStructure, new OpenFileSystem.IO.Path(proj.ProjectFile.Location.FullPath)) let descriptor = _env.ScopedDescriptors.ContainsKey(scope) ? _env.ScopedDescriptors[scope] : _env.ScopedDescriptors[string.Empty] select new ResharperProjectUpdater(descriptor.File, proj, env) ).ToList(); projects = monitors; return(true); }
public void TryAddNotifier(IFile descriptorPath, IPackageRepository repository, string projectFilePath, IEnumerable<string> ignoredAssemblies) { //Debugger.Launch(); if (_projectFiles.ContainsKey(projectFilePath)) { Services.Services.GetService<IWrapDescriptorMonitoringService>().ProcessWrapDescriptor(descriptorPath, repository, _projectFiles[projectFilePath]); return; } _projectFiles[projectFilePath] = new ResharperProjectUpdater(descriptorPath, repository, projectFilePath, Environment, ignoredAssemblies); }
bool TryEnumerateProjects(Func<ExecutionEnvironment> env, out IEnumerable<ResharperProjectUpdater> projects) { projects = new ResharperProjectUpdater[0]; if (SolutionManager == null) return false; ResharperLogger.Debug("SolutionManager found"); var solution = Solution; if (solution == null) return false; ResharperLogger.Debug("Solution found"); var monitors = ( from proj in solution.GetAllProjects() where ProjectIsOpenWrapEnabled(proj) let scope = PathFinder.GetCurrentScope(_env.Descriptor.DirectoryStructure, new OpenFileSystem.IO.Path(proj.ProjectFile.Location.FullPath)) let descriptor = _env.ScopedDescriptors.ContainsKey(scope) ? _env.ScopedDescriptors[scope] : _env.ScopedDescriptors[string.Empty] select new ResharperProjectUpdater(descriptor.File, proj, env) ).ToList(); projects = monitors; return true; }
public void TryAddNotifier(string descriptorPath, IPackageRepository repository, string projectFilePath) { if (_projectFiles.ContainsKey(projectFilePath)) return; _projectFiles[projectFilePath] = new ResharperProjectUpdater(descriptorPath, repository, projectFilePath, Environment); }