コード例 #1
0
        static PackageManagementServices()
        {
            options = new PackageManagementOptions();

            progressMonitorFactory        = new PackageManagementProgressMonitorFactory();
            backgroundPackageActionRunner = new BackgroundPackageActionRunner(progressMonitorFactory, packageManagementEvents);

            projectTargetFrameworkMonitor = new ProjectTargetFrameworkMonitor(projectService);
            packageCompatibilityHandler   = new PackageCompatibilityHandler();
            packageCompatibilityHandler.MonitorTargetFrameworkChanges(projectTargetFrameworkMonitor);

            updatedPackagesInWorkspace = new UpdatedNuGetPackagesInWorkspace(packageManagementEvents);

            projectOperations = new PackageManagementProjectOperations(backgroundPackageActionRunner, packageManagementEvents);

            workspace = new PackageManagementWorkspace();

            pluginManager = CreatePluginManager();

            credentialService = new PackageManagementCredentialService();
            credentialService.Initialize();

            PackageManagementBackgroundDispatcher.Initialize();

            nuGetConfigFileChangedMonitor.MonitorFileChanges();

            //analyzerPackageMonitor = new AnalyzerPackageMonitor ();
            MonoDevelop.Refactoring.PackageInstaller.PackageInstallerServiceFactory.PackageServices = new MonoDevelop.PackageManagement.Refactoring.NuGetPackageServicesProxy();
        }
コード例 #2
0
 public CheckForNuGetPackageUpdatesTaskRunner(UpdatedNuGetPackagesInWorkspace updatedNuGetPackagesInWorkspace)
 {
     this.updatedNuGetPackagesInWorkspace = updatedNuGetPackagesInWorkspace;
 }