未找到 Microsoft.Data.Schema.SqlTasks.targets”

问题描述 投票:0回答:1

想要构建一个管道以从数据库解决方案生成 dacpac。但构建失败并出现此错误消息

C:\Program Files (x86)\Microsoft Visual Studio�7\Enterprise\MSBuild\Microsoft\VisualStudio 10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets”未找到。

在自托管代理上运行此程序,我安装了 SSDT 工具和 VS2017,但添加的文件是“Microsoft.Data.Tools.Schema.SqlTasks.targets”<-- note the "Tools" ; so basically the build still fails.

将不胜感激指导。提前谢谢大家。

azure devops
1个回答
0
投票

似乎是 Dotnet 核心的问题 不支持运行 SQL 项目

在这里找到了一些解决方案https://gordonbeeming.com/blog/msb4019-microsoft-data-tools-schema-sqltasks-targets-was-not-found

我能够通过使用 msbuild 而不是 dotnet build 来克服它 有关如何使 msbuild 工作的指南请参见此处 => 如何使用 Windows SDK 7.1 从命令行运行 msbuild?

© www.soinside.com 2019 - 2024. All rights reserved.