The Imported Project “Microsoft.WebApplications.targets” Was Not Found

29Aug

When trying to setup continuos integration with TFS (Team Foundation Server) build service, I get the following error:

Keep in mind that my development machine (from where I queue my build) is different than my TFS build machine.

So, there are two solution to this problem:

Install Visual Studio 2010 (or the same version as in development machine) in your TFS server.

Copy the “Microsoft.WebApplication.targets” from development machine file to TFS build machine.

The “Microsoft.WebApplications.targets” file is normally located under: “C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications”. The file will need to be copied to same path in TFS build machine.