我试图使用命令从MSBuild命令行发布.sqlproj:
msbuild /t:Publish [MySqlProjPath]
但是我收到以下错误:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.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.
我觉得奇怪的是,从Visual Studio 2012我可以成功发布同一个项目.Visual Studio是否在发布之前设置任何神奇的msbuild属性以从另一个目录中获取.targets文件?