Appveyor CI 无法使用数据库项目构建 .net core 2.1 解决方案
Appveyor CI fails to build a .net core 2.1 solution with a database project
我们的 .net core 2.1 解决方案在使用 .net core sdk 2.1.301 的本地开发机器上编译良好。当没有定义数据库项目时,Appveyor 曾在其 CI 管道中编译解决方案。添加此类项目后,Appveyor 开始构建解决方案失败,并显示以下错误消息。任何解决此问题的线索?
C:\projects\comingsoon\ComsingSoonDatabase\ComsingSoonDatabase.sqlproj(57,3):
error MSB4019: The imported project "C:\Program
Files\dotnet\sdk.1.300\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets"
was not found. Confirm that the path in the declaration is
correct, and that the file exists on disk.
只能使用 visual studio 中包含的完整框架 MSBuild 工具构建数据库项目。
根据您设置应用程序的方式,您需要更改您的定义以使用 msbuild.exe 而不是 dotnet
命令。
我们的 .net core 2.1 解决方案在使用 .net core sdk 2.1.301 的本地开发机器上编译良好。当没有定义数据库项目时,Appveyor 曾在其 CI 管道中编译解决方案。添加此类项目后,Appveyor 开始构建解决方案失败,并显示以下错误消息。任何解决此问题的线索?
C:\projects\comingsoon\ComsingSoonDatabase\ComsingSoonDatabase.sqlproj(57,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk.1.300\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
只能使用 visual studio 中包含的完整框架 MSBuild 工具构建数据库项目。
根据您设置应用程序的方式,您需要更改您的定义以使用 msbuild.exe 而不是 dotnet
命令。