error MSB4019 - MSBUILD looking for imports for non-existing version
18,833
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
Author by
Metaphor
Updated on June 13, 2022Comments
-
Metaphor almost 2 years
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?
-
Leo Liu about 7 yearsyes, blogs.msdn.microsoft.com/visualstudio/2013/07/24/… MSBuild is part of Visual Studio since Visual Studio 2013. Since you have resolved this issue. Please mark your answer which is benefit to other communities who has the same problem. Thanks.
-
Baahubali almost 7 years@Metaphor: How do you change the path from .NET 4.0 MSBuild to Msbuild as in your answer?
-
Metaphor almost 7 yearsI fully qualified the executable in the batch file.