Exemplo n.º 1
0
 private void Execute(object sender, EventArgs e)
 {
     System.Threading.Tasks.Task.Run(() =>
     {
         AddCliHostFile.CopyFile(_folder, "template-icon.png", false);
         AddCliHostFile.CopyFile(_folder, Constants.VsHostFileName, true);
     });
 }
Exemplo n.º 2
0
 protected async override Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
 {
     if (await GetServiceAsync(typeof(IMenuCommandService)) is OleMenuCommandService commandService)
     {
         // Execute on the UI thread
         ThreadHelper.Generic.BeginInvoke(DispatcherPriority.ContextIdle, () =>
         {
             AddTemplate.Initialize(this, commandService);
             AddVsHostFile.Initialize(this, commandService);
             AddCliHostFile.Initialize(this, commandService);
         });
     }
 }
Exemplo n.º 3
0
        //private IServiceProvider ServiceProvider
        //{
        //    get { return _package; }
        //}

        public static void Initialize(Package package, OleMenuCommandService commandService)
        {
            Instance = new AddCliHostFile(package, commandService);
        }