如何在TFS 2017中更新内置的Microsoft任务库? [英] How to update the built-in Microsoft task library in TFS 2017?

查看:85
本文介绍了如何在TFS 2017中更新内置的Microsoft任务库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在没有Internet连接的情况下,升级Microsoft在本地TFS中加载的默认任务的过程是什么?

根据

任务右侧,有一个名为 Versions 的列,代表当前受支持的TFS版本和VSTS.

我在本地使用TFS,但看不到其中一些功能.为什么不呢?

其中某些功能仅在VSTS上可用,尚不可用如果某些功能在本地可用您已升级到最新版本的TFS.

此处找到它.您也可以构建它并将其打包为普通扩展.请查看以下步骤,以供参考:

  1. 全局安装typescript和tfx-cli(以打包VSTS扩展程序): npm install -g typescript tfx-cli
  2. 从适当的repo运行npm install.这会拉下来任务和构建工具所需的模块.
  3. 运行 npm run build 来编译构建任务或如何安装扩展程序vsix文件到TFS 2015(更新3)?
  4. 创建自己的扩展程序

    What is the process for upgrading the default tasks loaded by Microsoft in an on-premises TFS with no internet connectivity?

    According to https://docs.microsoft.com/en-us/vsts/build-release/tasks/ there are several tasks now available and supported in TFS v2015-2018/VSTS that do not appear in my TFS 2017u2 installation (specifically the Download Secure File task).

    The default tasks are not shown in the Manage Extension screens and the git repo (https://github.com/Microsoft/vsts-tasks) does not appear to have any instructions for how to package and install the latest versions in an existing TFS.

    解决方案

    Download Secure File this task is not support by TFS2017 update2 for now.

    In the right of the task, there is a column called Versions which stands for the supported TFS version and VSTS for now.

    I use TFS on-premises and I don't see some of these features. Why not?

    Some of these features are available only on VSTS and not yet available on-premises. Some features are available on-premises if you have upgraded to the latest version of TFS.

    Source Link

    The task you need is only available/build-in with VSTS by now.


    However, this task is open sourced, you could find it here. You could also build it and package it as normal extension. Take a look at below steps for your reference:

    1. Globally install typescript and tfx-cli (to package VSTS extensions): npm install -g typescript tfx-cli
    2. From the suitable of the repo run npm install. This will pull down the necessary modules for the tasks and for the build tools.
    3. Run npm run build to compile the build tasks or build a specific task (recommended): node make.js build --task ShellScript
    4. Run npm run package -- --version <version> to create the .vsix extension packages (supports multiple environments) that includes the build tasks.

    With the .vsix files, you are easy to directly upload the extension. Details about this area, you could refer here:

    Besides, even you have published the extension to your TFS successfully, this task may not compatible with your present version, just Giulio said, you could create a test first. Certainly, you could also create your own extension as your demands.

    这篇关于如何在TFS 2017中更新内置的Microsoft任务库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆