title: TFS 2010 build error - imported project "project_path" was not found
body: <p>Have been trying to build a solution which contains a number of projects and keep getting a recurring error.</p>
  
  <p>I have managed to get the build to partially succeed but always get the error shown below:</p>
  
  <p>C:\Builds\1\MBS.Payments.Forms.Mvc\MBS Payment Forms MVC\Sources\MBS.Payments.Forms.Mvc\MBS.Forms.Payments.Web\MBS.Forms.Payments.Web.csproj (979): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the  declaration is correct, and that the file exists on disk.</p>
  
  <p>I have navigated to the file in which the error is being generated where this code is highlighted:</p>
  
  <pre><code>&lt;Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets"  Condition="'$(VSToolsPath)' != ''" /&gt;
  </code></pre>
  
  <p>Currently I have both Visual Studio 2010 Premium and a evaluation version of Visual Studio 2012 Ultimate installed, I am currently working on this application in Visual Studio 2010.</p>
  
  <p>below is the code block in which the erroneous code is found:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
  &lt;VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''"&gt;10.0&lt;/VisualStudioVersion&gt;
  &lt;VSToolsPath Condition="'$(VSToolsPath)' == ''"&gt;$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)&lt;/VSToolsPath&gt;
  </code></pre>
  
  <p>
    
    
    </p>
  
  <p>Please could anyone advise on why this error is being generated and how it could be resolved.  </p>