7

Does anyone know if the solution can be deployed correctly with a project of this type included? I tried but keep getting this error:

error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
friism
  • 19,068
  • 5
  • 80
  • 116
danielrmz
  • 71
  • 2

1 Answers1

4

You should be able to include a local targets file, include it in the repository you push to AppHarbor and reference that. Here's some related discussion for Silverlight projects.

friism
  • 19,068
  • 5
  • 80
  • 116
  • I did this and it still fails when executing the task: `` – bevacqua Sep 06 '12 at 21:23
  • 1
    Hm, Visual Studio is installed on the build servers so the dll should be available. You might want to experiment with including the dll in your repository and referencing the local dll from the targets file that you push. More resources here: http://social.msdn.microsoft.com/Forums/en/vstsdb/thread/c2415cd6-ac8c-40a2-9d54-e19f07be023d – friism Sep 07 '12 at 02:46
  • http://stackoverflow.com/questions/12310164/appharbor-one-step-build-and-how-to-deploy-my-database – bevacqua Sep 07 '12 at 03:14
  • Referenced the assembly using `AssemblyFile="Microsoft.Data.Schema.Tasks.Sql.dll"` and a local copy, now I get: `CREATE ASSEMBLY for assembly 'Microsoft.Data.Schema.Tasks.Sql' failed because the assembly is built for an unsupported version of the Common Language Runtime.` – bevacqua Sep 07 '12 at 03:44