代码之家  ›  专栏  ›  技术社区  ›  Laurence

使用本地TFS连续部署DocFx文档

  •  1
  • Laurence  · 技术社区  · 7 年前

    我正在努力使用本地TFS为DocFX项目设置连续部署过程。

    here 不过,示例演练是针对VST的,我有内部部署TFS(2013版)。基本思想是在每次签入时构建和部署文档网站。这个 DocFx Build Tasks 进程使用的扩展似乎确实支持本地TFS。。。我就是不知道该怎么做!

    于是我发现 DocFx生成任务

    我已下载了.VSIX,但无法确定在何处安装它。

    31/08/2018 14:31:54 - Supported Products : 
    31/08/2018 14:31:54 - Microsoft.VisualStudio.Services
    31/08/2018 14:31:54 - Version : 
    31/08/2018 14:31:54 - 
    31/08/2018 14:31:54 - References : 
    31/08/2018 14:31:54 - Signature Details...
    31/08/2018 14:31:54 - Extension is not signed.
    31/08/2018 14:31:54 - 
    31/08/2018 14:31:54 - Searching for applicable products...
    31/08/2018 14:31:54 - Found installed product - Microsoft Visual Studio 2012 Shell (Integrated)
    31/08/2018 14:31:54 - Found installed product - Global Location
    31/08/2018 14:31:54 - Found installed product - ssms
    31/08/2018 14:31:54 - Found installed product - Visual Studio Community 2017
    31/08/2018 14:31:54 - Found installed product - Visual Studio Build Tools 2017 (2)
    31/08/2018 14:31:54 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
    

    在TFS 2013门户中,似乎也没有可以上传扩展的选项(尽管更高版本似乎有这个选项)。

    我该怎么办?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Andy Li-MSFT    7 年前

    基于错误消息“' warning MSB4078: The project file "DocFx.csproj" is not supported by MSBuild and cannot be built. “”似乎您正在使用不正确的MSBuild版本来生成项目。参考类似螺纹: Build succeeded with projects Ctrl + Shift + B that MSBuild can't build

    ToolPath 到完整的MSBuild路径: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin" . 引用此线程: TFS 2013 and Visual Studio 2017 Syntax

    MSBuild arguments 在生成定义中。例如: /tv:15.0 /p:VisualStudioVersion=15.0 与VS2017一起打造。

    DocFx Build Tasks TFS 2013不支持扩展。要使用扩展,您需要迁移到vNext build(TFS 2015及更高版本)。要安装扩展,请参阅 Install extensions for Team Foundation Server (TFS)

    Why You Should Switch to Build VNext

    推荐文章