Ejemplo n.º 1
0
 protected override async Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
 {
     if (await GetServiceAsync(typeof(IMenuCommandService)).ConfigureAwait(false) is OleMenuCommandService commandService)
     {
         InstallLibraryCommand.Initialize(this, commandService);
         CleanCommand.Initialize(this, commandService);
         RestoreCommand.Initialize(this, commandService);
         RestoreSolutionCommand.Initialize(this, commandService);
         RestoreOnBuildCommand.Initialize(this, commandService);
         ManageLibrariesCommand.Initialize(this, commandService);
     }
 }
Ejemplo n.º 2
0
 public static void Initialize(Package package, OleMenuCommandService commandService)
 {
     Instance = new RestoreOnBuildCommand(package, commandService);
 }