zoukankan      html  css  js  c++  java
  • tfs witadmin

    有时候对TFS的操作需要使用命令行,因为无图形界面进行操作.

    我们可以进入Visual Studio Tools使用Developer Command Prompt进行操作.

    使用命令

    witadmin /?

    可以查看到所有参数

    The following is the list of commands that are available.  Type 'witadmin
    [command] /?' or 'witadmin help [command]' and press Enter to view help for a
    specific command.
    
            changefield
            deactivatelinktype
            deletefield
            deletelinktype
            destroygloballist
            destroywi
            destroywitd
            exportagileprocessconfig
            exportcategories
            exportcommonprocessconfig
            exportgloballist
            exportglobalworkflow
            exportlinktype
            exportprocessconfig
            exportwitd
            help
            importagileprocessconfig
            importcategories
            importcommonprocessconfig
            importgloballist
            importglobalworkflow
            importlinktype
            importprocessconfig
            importwitd
            indexfield
            listfields
            listgloballist
            listlinktypes
            listwitd
            reactivatelinktype
            rebuildcache
            renamewitd

    例如想看importwitd如何使用可以敲入

    witadmin importwitd /?

    如何将会有一些帮助提示

    This command imports a work item type XML definition file into a team project
    on a Team Foundation Server.  If a work item type with the same name already
    exists, the new work item type definition will overwrite the existing
    definition. If the work item type does not already exist, a new work item type
    will be created.
    
    Usage: witadmin importwitd /collection:collectionurl [/p:project] /f:filename
    [/e:encoding] [/v]
    
     /collection    Specifies the Team Foundation project collection. Use a fully
                    specified URL such as http://servername:8080/tfs/Collection0.
     /p             Specifies the team project in which the new work item type is
                    imported.  This is required, except when the validation-only
                    option is used.
     /f             Specifies the work item type XML definition file to import.
     /e             Specifies the name of the .NET Framework 2.0 encoding used to
                    import the XML file. For example, /e:utf-7 will use Unicode
                    (UTF-7) encoding. Encoding is automatically detected whenever
                    possible. If the encoding cannot be detected, UTF-8 is used.
     /v             Validates the XML definitions for the work item type, link
                    type, or global workflow without importing them.
  • 相关阅读:
    Solr 配置中文分词器 IK
    Solr 访问 403 错误
    阿里巴巴在线代码检查工具
    『调错』OGG Error opening module ggjava_ue.dll
    『取巧』VS2015试用期过后 继续试用
    『开源』设置系统 主音量(0~100 静音) VolumeHelper 兼容 Xp Win7 .Net 20 AnyCPU
    『尝试』随手绘制几张点阵图片
    『实用』过滤字符串中的幽灵字符
    『转载』从内存资源中加载C++程序集:CMemLoadDll
    『开源重编译』System.Data.SQLite.dll 自适应 x86 x64 AnyCPU 重编译
  • 原文地址:https://www.cnblogs.com/towerking/p/3725666.html
Copyright © 2011-2022 走看看