未找到 Azure Build Sql Dacpac

问题描述

所以我们正在尝试构建一个 MS SQL 数据库管道。我遇到的问题是由于未找到 dacpac。他们在我们的回购中 error message

现在我确实注意到构建正在寻找企业途径。我的本地构建和我对 repo 的推送来自专业的 VS 版本。如何解决这个问题?每个数据库参考在我的解决方案中都有相同的问题。我的 sln 文件被识别,但不是我的数据库引用。

解决方法

根据您的错误消息,对 master.dacpac 的引用不正确。请打开并检查您的 .sqlproj 文件。你会像这样找到对 Master 数据库的引用:

<ArtifactReference Include="$(DacPacRootPath)\Extensions\Microsoft\SQLDB\Extensions\SqlServer\130\SqlSchemas\master.dacpac">
  <HintPath>$(DacPacRootPath)\Extensions\Microsoft\SQLDB\Extensions\SqlServer\130\SqlSchemas\master.dacpac</HintPath>

如果您的 Include=" 是硬编码路径,您可以尝试将 HintPath 元素的内容复制到 Include 属性。 详情请参阅this ticket

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...