Действительно ли возможно использовать SDK TFS, чтобы создать, поставить в очередь и отследить сборки?

Вы можете заключить две div в одну div и показать / скрыть только это.

Кроме того, переключатели должны иметь одно и то же значение name, чтобы пользователи могли выбирать только один параметр за раз.

function show1() {
  document.getElementById('divs').style.display = 'none';
}

function show2() {
  document.getElementById('divs').style.display = 'block';
}

function show3() {
  document.getElementById('divs').style.display = 'block';
}
body {
  font-family: arial;
}

.hide {
  display: none;
}

p {
  font-weight: bold;
}
<p>Leave</p>
<input type="radio" name="tab" value="igotnone" onclick="show1();" /> Full Day
<input type="radio" name="tab" value="igottwo" onclick="show2();" /> From
<input type="radio" name="tab" value="igottwo" onclick="show3();" /> To

<div id="divs" class="hide">
  <div id="div1">
    <hr>
    <p>From Which Half Session You Are Not Available???</p>
    <input type="radio" value="Yes" name="one"> First Session&nbsp;
    <input type="radio" value="Yes" name="one"> Second Session
  </div>

  <div id="div2">
    <hr>
    <p>To Which Half Session You Are Not Available???</p>
    <input type="radio" value="Yes" name="two"> First Session&nbsp;
    <input type="radio" value="Yes" name="two"> Second Session
  </div>
</div>

8
задан JimDaniel 4 March 2009 в 16:57
поделиться

2 ответа

Richard указал на меня в правильном направлении, таким образом, я собираюсь ответить на свой собственный вопрос с тем, что я нашел.

Да, можно использовать SDK TFS, чтобы создать, поставить в очередь, и отследить сборки. Интерфейсы/классы, которые Вы хотите, расположены в Microsoft. TeamFoundation. Сборка. Клиентское пространство имен. IBuildServer, IBuildDefinition и IBuildDetail особенно полезны.

ОБНОВЛЕНИЕ TFS 2010 года: Вот пример программы с помощью SDK 2010 TFS, найденного здесь:

using System;
using System.Collections.Generic;
using Microsoft.TeamFoundation.Build.Client;
using Microsoft.TeamFoundation.Build.Workflow;
using Microsoft.TeamFoundation.Client;

namespace ManageBuildTemplates
{
    class Program
    {
        static void Main(string[] args)
        {
            TfsTeamProjectCollection collection = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://jpricket-test:8080/tfs/collection0"));
            IBuildServer buildServer = collection.GetService<IBuildServer>();

            IBuildDefinition definition = buildServer.GetBuildDefinition("UnitTests", "Definition1");

            IBuildRequest request = definition.CreateBuildRequest();
            request.ProcessParameters = UpdateVerbosity(request.ProcessParameters, BuildVerbosity.Diagnostic);

            buildServer.QueueBuild(request);
        }

        private static string UpdateVerbosity(string processParameters, BuildVerbosity buildVerbosity)
        {
            IDictionary<String, Object> paramValues = WorkflowHelpers.DeserializeProcessParameters(processParameters);
            paramValues[ProcessParameterMetadata.StandardParameterNames.Verbosity] = buildVerbosity;
            return WorkflowHelpers.SerializeProcessParameters(paramValues);
        }
    }
}
12
ответ дан 5 December 2019 в 11:27
поделиться

Взгляд на tfsbuild.exe (в.../Common9/IDE папке установки VS).

Это ссылается на блоки Microsoft.TeamFoundation.Build.Client и Microsoft.TeamFoundation.Build.Common которые выглядят полезными... и содержат пространства имен, которые не документируются с другим TFS cient блоки, но находятся на MSDN здесь http://msdn.microsoft.com/en-us/library/cc339575.aspx

3
ответ дан 5 December 2019 в 11:27
поделиться
Другие вопросы по тегам:

Похожие вопросы: