How to use nuget packages during build?
<p>I want to use some tools during build that are acquired with nuget. Here is relevant part of <code>csproj</code> file:</p>

<pre><code>&lt;Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release'"&gt;
    &lt;GetAssemblyIdentity AssemblyFiles="$(TargetPath)"&gt;
        &lt;Output TaskParameter="Assemblies" ItemName="myAssemblyInfo"/&gt;
    &lt;/GetAssemblyIdentity&gt;
    &lt;Exec Command="nuget pack MyApp.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory bin\Release -BasePath bin\Release" /&gt;
    &lt;Exec Command="squirrel --no-msi --releasify bin\Release\MyApp.%(myAssemblyInfo.Version).nupkg" /&gt;
&lt;/Target&gt;
</code></pre>

<p>Namely I want to use <code>Squirrel</code> and <code>NuGet</code> itself (contained in <code>NuGet.CommandLine</code> package) to build an installer. Executables are located in <code>packages\&lt;package name&gt;\tools\*.exe</code>. The lines used in <code>Exec</code> command work in Package Manager Console but Visual Studio can't find the executables during build (error 9009). It there a way to include package tools in current path during build to make them available?</p>