Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TfxExtensionInstallArgumentBuilder"/> class.
 /// </summary>
 /// <param name="environment">The environment.</param>
 /// <param name="vsixFilePath">The FilePath to the VSIX.</param>
 /// <param name="accounts">The accounts to install the extension to.</param>
 /// <param name="settings">The settings.</param>
 public TfxExtensionInstallArgumentBuilder(ICakeEnvironment environment, FilePath vsixFilePath, ICollection <string> accounts, TfxExtensionInstallSettings settings)
 {
     _environment  = environment;
     _vsixFilePath = vsixFilePath;
     _accounts     = accounts;
     _settings     = settings;
 }
Exemplo n.º 2
0
        public static void TfxExtensionInstall(this ICakeContext context, FilePath vsixFilePath, ICollection <string> accounts, TfxExtensionInstallSettings settings)
        {
            var runner = new TfxExtensionInstallRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Install(vsixFilePath, accounts, settings);
        }