【问题标题】:TFS Build Server fails with Reporting Services projectTFS 构建服务器因 Reporting Services 项目而失败
【发布时间】:2019-06-25 13:32:58
【问题描述】:

我有一个 Visual Studio 2015 解决方案,其中包含一个 Reporting Services 项目 (*.rptproj),该项目用于在我们的 TFS 构建服务器上构建良好。

我将解决方案升级到 Visual Studio 2017,现在它在 CI 构建期间失败并出现以下错误:

<Reporting-Services-Project-Path>\<Reporting-Services-Project-Name>.rptproj (57, 11)
The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Reporting Services\Microsoft.ReportingServices.MSBuilder.targets" was not found. Also, tried to find "Reporting Services\Microsoft.ReportingServices.MSBuilder.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\msbuild.exe.Config". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.
Process 'msbuild.exe' exited with code '1'.

我们使用的是 TFS 2015。我已将 Visual Studio Build Tools 2017 更新到最新版本 15.9.6,但这并没有帮助。

【问题讨论】:

    标签: reporting-services msbuild tfsbuild sql-server-data-tools


    【解决方案1】:

    SSDT 未包含在 Visual Studio Build Tools 2017 中。

    要使构建工作正常,需要从开发人员 PC 手动复制所需的文件。

    在我的例子中,我将 Reporting Services 文件夹从开发人员 PC 上的 C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild 复制到C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild 在构建服务器上。

    现在构建成功了。

    【讨论】:

    • 即使您安装了“数据存储和处理构建工具”工作负载,其中包括“SQL Server 数据工具 - 构建工具”,它仍然无法正常工作。复制这个文件夹是我能找到的让它工作的唯一方法。
    猜你喜欢
    • 2021-11-25
    • 1970-01-01
    • 2011-04-12
    • 2017-04-16
    • 2018-02-24
    • 1970-01-01
    • 1970-01-01
    • 2019-08-08
    • 2014-06-17
    相关资源
    最近更新 更多