Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error MSB4019 - MSBUILD looking for imports for non-existing version

When I try to build my SSDT project with MSBUILD, I get the following error

error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found

In my ...\MSBuild\Microsoft\VisualStudio folder, however, I only have V12.0, V14.0 and V15.0. SSDT is found only in V14.0.

How can I make sure MSBuild looks for includes in the right place?

like image 507
Metaphor Avatar asked Mar 20 '17 12:03

Metaphor


1 Answers

Looks like the .Net 4.0 msbuild.exe was the wrong one to use.

The problem was solved by using msbuild.exe from the msbuild folder instead of the .Net folder.

%ProgramFiles(x86)%\msbuild\14.0\Bin
like image 91
Metaphor Avatar answered Oct 14 '22 02:10

Metaphor