【发布时间】:2013-08-19 12:57:46
【问题描述】:
我正在尝试使用 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 文件?
【问题讨论】: