I have this error when configuring continuous integration in TFS server, but found the answer already. Maybe this will help others:
The imported project \"C:
If you don't deploy from the build server, then just turn off the Microsoft.WebApplication.targets on the build server. See my answer here: https://stackoverflow.com/a/35781566/4955344
Microsoft.WebApplication.targets