/// <summary> /// Adds the arguments to the specified argument builder. /// </summary> /// <returns>A populated <see cref="ProcessArgumentBuilder"/>.</returns> public ProcessArgumentBuilder GetArguments() { var builder = new ProcessArgumentBuilder(); builder.Append("extension publish"); if (_vsixFilePath != null) { builder.Append("--vsix"); builder.AppendQuoted(_vsixFilePath.MakeAbsolute(_environment).FullPath); } if (_settings.ShareWith != null && _settings.ShareWith.Count != 0) { builder.Append("--share-with"); foreach (var account in _settings.ShareWith) { builder.AppendQuoted(account); } } TfxArgumentBuilder.GetServerArguments(builder, _settings); TfxArgumentBuilder.GetCreatePublishArgument(builder, _environment, _settings); TfxArgumentBuilder.GetCommonArguments(builder, _settings); return(builder); }
/// <summary> /// Adds the arguments to the specified argument builder. /// </summary> /// <returns>A populated <see cref="ProcessArgumentBuilder"/>.</returns> public ProcessArgumentBuilder GetArguments() { var builder = new ProcessArgumentBuilder(); builder.Append("extension share"); builder.Append("--vsix"); builder.AppendQuoted(_vsixFilePath.MakeAbsolute(_environment).FullPath); builder.Append("--share-with"); foreach (var account in _shareWith) { builder.AppendQuoted(account); } TfxArgumentBuilder.GetServerArguments(builder, _settings); TfxArgumentBuilder.GetCommonArguments(builder, _settings); return(builder); }