当我们使用自托管代理运行管道时,我们遇到以下问题。
##[error]C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\v17.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(507,5): Error MSB4181: The “SqlBuildTask” task returned false but did not log an error.
当我们在 Microsoft 托管代理上运行管道时,管道是成功的。如果使用 Microsoft 托管代理构建成功,则 CD 会失败并出现以下错误。
Internal Error. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service.
我期待问题的解决方案并成功部署到各自的环境中。
检查您是否在构建代理上安装了 SQL Server Data Tools for Visual Studio https://learn.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql -服务器版本16