コード例 #1
0
		static PackageManagementServices()
		{
			options = new PackageManagementOptions();
			packageRepositoryCache = new PackageRepositoryCache(options.PackageSources, options.RecentPackages);
			registeredPackageRepositories = new RegisteredPackageRepositories(packageRepositoryCache, options);
			projectTemplatePackageSources = new RegisteredProjectTemplatePackageSources();
			projectTemplatePackageRepositoryCache = new ProjectTemplatePackageRepositoryCache(packageRepositoryCache, projectTemplatePackageSources);
			
			outputMessagesView = new PackageManagementOutputMessagesView(packageManagementEvents);
			projectBrowserRefresher = new ProjectBrowserRefresher(projectService, packageManagementEvents);
			solution = new PackageManagementSolution(registeredPackageRepositories, packageManagementEvents);
			
			consoleHostProvider = new PackageManagementConsoleHostProvider(solution, registeredPackageRepositories);
			runPackageInitializationScripts = new RunPackageInitializationScriptsOnSolutionOpen(projectService);
			resetPowerShellWorkingDirectory = new ResetPowerShellWorkingDirectoryOnSolutionClosed(projectService, ConsoleHost);
			var consolePackageActionRunner = new ConsolePackageActionRunner(ConsoleHost, packageActionsToRun);
			packageActionRunner = new PackageActionRunner(consolePackageActionRunner, packageManagementEvents);
		}
コード例 #2
0
        static PackageManagementServices()
        {
            options = new PackageManagementOptions();
            packageRepositoryCache                = new PackageRepositoryCache(options.PackageSources, options.RecentPackages);
            registeredPackageRepositories         = new RegisteredPackageRepositories(packageRepositoryCache, options);
            projectTemplatePackageSources         = new RegisteredProjectTemplatePackageSources();
            projectTemplatePackageRepositoryCache = new ProjectTemplatePackageRepositoryCache(packageRepositoryCache, projectTemplatePackageSources);

            outputMessagesView      = new PackageManagementOutputMessagesView(packageManagementEvents);
            projectBrowserRefresher = new ProjectBrowserRefresher(projectService, packageManagementEvents);
            solution = new PackageManagementSolution(registeredPackageRepositories, packageManagementEvents);

            consoleHostProvider             = new PackageManagementConsoleHostProvider(solution, registeredPackageRepositories);
            runPackageInitializationScripts = new RunPackageInitializationScriptsOnSolutionOpen(projectService);
            resetPowerShellWorkingDirectory = new ResetPowerShellWorkingDirectoryOnSolutionClosed(projectService, ConsoleHost);
            var consolePackageActionRunner = new ConsolePackageActionRunner(ConsoleHost, packageActionsToRun);

            packageActionRunner = new PackageActionRunner(consolePackageActionRunner, packageManagementEvents);
        }
コード例 #3
0
		void CreateProjectBrowserRefresher()
		{
			fakeProjectService = new FakePackageManagementProjectService();
			packageManagementEvents = new PackageManagementEvents();
			projectBrowserRefresher = new ProjectBrowserRefresher(fakeProjectService, packageManagementEvents);
		}