title: What is the EnsureNuGetPackageBuildImports target?
body: <p>In some of my csproj files I have this but some dont:</p>
  
  <pre><code>  &lt;Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"&gt;
      &lt;PropertyGroup&gt;
        &lt;ErrorText&gt;This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.&lt;/ErrorText&gt;
      &lt;/PropertyGroup&gt;
      &lt;Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" /&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>What exactly is this and why do I need it?  My other projects are restoring their packages just fine <strong>without it</strong>.</p>
  
  <p>I am using VS2013 and NuGet 2.8.</p>