【问题标题】:Epplus Create Excel with TFS ConnectionEpplus 使用 TFS 连接创建 Excel
【发布时间】:2019-01-03 11:06:28
【问题描述】:

有没有办法使用 Epplus 以编程方式连接到 TFS Server 项目集合来创建 Excel?我想以编程方式创建一个 Excel 并将其连接到 TFS。

【问题讨论】:

    标签: .net tfs azure-devops epplus


    【解决方案1】:

    您可以在 .Net (C#) 中使用 Epplus 创建 Excel 并使用 TFS SDK 连接到 TFS,您可以下载这些 NuGet 包:

    Microsoft.VisualStudio.Services.Client

    Microsoft.TeamFoundationServer.Client

    Microsoft.TeamFoundationServer.ExtendedClient

    所有的 DLL 也保存在以下位置,您可以在项目中使用它们:

     "C:\Program Files (x86)\Microsoft Visual Studio {Visual Studio Version}\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer"
    

    一个很好的SDK使用教程你可以找到here

    另外,你可以从你的代码中连接 TFS 和 Rest API,你可以阅读here 了解它。

    【讨论】:

    • A good tutorial on how to use the SDK you can find here.中的链接好像失效了,能查一下吗?
    【解决方案2】:

    Epplus 可以在 Excel 中编写宏。

    宏可以用来控制TFS的areapath和server url

    看看 .https://blogs.msdn.microsoft.com/teams_wit_tools/2007/03/14/how-to-invoke-tfs-add-in-controls-from-macro-code/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-24
      • 2016-03-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多