如何在构建服务器上构建.sqlproj项目? [英] How to build .sqlproj projects on a build server?

查看:252
本文介绍了如何在构建服务器上构建.sqlproj项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多需要在我们的构建服务器上构建的.sqlproj项目。我不想将所有Visual Studio都安装在构建服务器上,所以我可以安装SSDT来构建它们。在没有完整的VS安装的情况下如何构建.sqlproj项目?

I have many .sqlproj projects that need to be built on our build server. I don't want to install all of Visual Studio on the build server just so I can install SSDT to build these. How can I build .sqlproj projects without a full VS install?

这是在尝试不安装SSDT的情况下在构建服务器上遇到的原始错误:

Here's the raw error I get on the build server when trying to build without SSDT intstalled:

C:\MyProject\MyProj.sqlproj (4): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.


推荐答案

答案:现在是Microsoft具有 NuGet官方软件包(请参见

Answer: Microsoft now has an official NuGet package (see blog post).

旧答案,2016年8月之前;提供以防NuGet软件包对您不起作用:


  1. 安装dacframework.msi( x86 | x64

  2. 安装SQLDOM.MSI( x86 | x64

  3. 安装SQLLS.MSI( x86 | x64

  4. 安装SQLSysClrTypes.msi( x86 | x64

  5. 安装SSDTBuildUtilities.msi(从管理员安装点作为步骤3中的设置进行安装此处

  1. Install dacframework.msi (x86|x64)
  2. Install SQLDOM.MSI (x86|x64)
  3. Install SQLLS.MSI (x86|x64)
  4. Install SQLSysClrTypes.msi (x86|x64)
  5. Install SSDTBuildUtilities.msi (from the "Administrator Install Point" as setup in step 3 here)

完成!

来源:对SSDT(* .sqlproj)项目的无头MSBuild支持

这篇关于如何在构建服务器上构建.sqlproj项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆