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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With