在 ms 托管的构建服务器中构建报告查看器时出现问题

Han*_*rik 5 reportviewer build azure-pipelines visual-studio-2019

我已经升级到 vs-2019 和 2016 版本的报告查看器,现在在 ms 托管的 azure 管道中构建时遇到问题。使用 Visual Studio 在我的本地环境中构建和测试时不会出现同样的问题。

我已从 .net Framework 4.7 升级到 4.7.2,因为我读到 azure 构建服务器 vs2019 使用 4.7.2,但这显然不能解决问题。

我已将包 Microsoft.ReportingServices.ReportViewerControl.Winforms 升级到最新版本 150.1358.0 Microsoft.SqlServer.Types 到最新版本 14.0.1016.290

我在构建时收到这些错误消息

[错误]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4552,5):错误 MSB3030:无法复制文件“ d:\a\1\s\SsegukuReports\SqlServerTypes\x86\msvcr120.dll”,因为找不到。

[错误]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4552,5):错误 MSB3030:无法复制文件“ d:\a\1\s\SsegukuReports\SqlServerTypes\x64\SqlServerSpatial140.dll”,因为找不到。

[错误]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4552,5):错误 MSB3030:无法复制文件“ d:\a\1\s\SsegukuReports\SqlServerTypes\x86\SqlServerSpatial140.dll”,因为找不到。

[错误]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4552,5):错误 MSB3030:无法复制文件“ d:\a\1\s\SsegukuReports\SqlServerTypes\x64\msvcr120.dll”,因为找不到。

Leo*_*SFT 7

\n

在 ms 托管的构建服务器中构建报告查看器时出现问题

\n
\n\n

如果您通过 NuGet 安装了 Microsoft.SqlServer.Types,并且您的应用程序在本地运行,但在通过 Azure DevOps 构建时出现错误,那么您只需将dll 添加到源代码管理即可

\n\n

在此输入图像描述

\n\n

笔记:

\n\n

默认情况下,这些 dll 会被忽略(左侧的红色图标)。右键单击忽略的 dll,然后选择将忽略的文件添加到源代码管理\xe2\x80\xa6,然后提交并推送更改。

\n\n

希望这可以帮助。

\n