代码之家  ›  专栏  ›  技术社区  ›  John Mills

TFS生成服务器在Reporting Services项目中失败

  •  0
  • John Mills  · 技术社区  · 6 年前

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

    我将解决方案升级到了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生成工具2017更新为最新版本15.9.6,但这并没有起到任何作用。

    1 回复  |  直到 6 年前
        1
  •  0
  •   John Mills    6 年前

    SSDT不包含在Visual Studio构建工具2017中。

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

    在我的案例中,我复制了 报告服务 文件夹从 C:\程序文件(x86)\Microsoft Visual Studio\2017\Professional\msbuild 在我的开发人员PC上 C:\程序文件(x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild 在生成服务器上。

    现在构建成功。