Exemple #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();
        }
Exemple #2
0
 internal static void InitializeCredentialService()
 {
     credentialService.Initialize();
 }