我有许多.sqlproj项目需要在我们的构建服务器上构建。我不想在构建服务器上安装所有的Visual Studio,这样我就可以安装SSDT来构建它们。如果没有完整的VS安装,我如何构建.sqlproj项目?
以下是我在没有安装SSDT的情况下尝试构建时在构建服务器上遇到的原始错误:
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.发布于 2013-03-22 06:55:00
回答:微软现在有了一个official NuGet package (参见blog post)。
旧答案,2016年8月之前;为防止NuGet包对您不起作用而提供:
作为步骤3 here)中的设置,
完成了!
发布于 2013-07-17 22:19:12
Microsoft SQL Server数据工具:http://msdn.microsoft.com/en-us/data/hh297027
在构建计算机上安装工具以解决此问题。
发布于 2017-03-29 16:39:45
Microsoft SQL Server Data Tools团队发布了一个名为Microsoft.Data.Tools.Msbuild的NuGet包,它有助于在构建服务器上构建SQL项目。
NuGet包:https://www.nuget.org/packages/Microsoft.Data.Tools.Msbuild/
https://stackoverflow.com/questions/15556339
复制相似问题