If you get this error message, which I did this morning opening up someone else’s SharePoint solution, make sure you have InfoPath installed.
Once I installed the InfoPath client application with .Net Programmability Support, see below, the targets file was installed to the MSBuild directory.