title: How to include assemblies from NuGet packages in a VSIX Installer?
body: <p>I'm working on creating a Visual Studio 2017 custom Check-In Policy extension. My current solution is structured as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/mwbpP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mwbpP.png" alt="VSIX Solution Structure"></a></p>
  
  <p>Note: I am taking advantage of the new NuGet <a href="https://github.com/NuGet/Home/wiki/PackageReference-Specification" rel="noreferrer">PackageReference</a> approach, which is why there is no packages.config file.</p>
  
  <hr>
  
  <p>I believe I have setup my VSIX manifest appropriately since everything works perfectly when I don't reference <code>Microsoft.Net.Http</code> (originally I was hard-coding in values instead of retrieving the values). I'm not sure why the <code>Microsoft.TeamFoundationServer.ExtendedClient</code> NuGet package being included doesn't cause any issues, whereas the <code>Microsoft.Net.Http</code> NuGet package does.</p>
  
  <p>I looked at the debug folder to see what is being compiled and I see every assembly necessary being pulled in, however if I unpack the VSIX (I renamed it to *.zip and unzipped it), only the project assembly is included; the Nuget referenced assemblies are not packaged in the VSIX package.</p>
  
  <p>I came across a few resources, but nothing seems to work:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/12110135/vsix-package-doesnt-include-referenced-projects-dependencies">VSIX Package doesn&#39;t include referenced project&#39;s dependencies</a></li>
  <li><a href="https://stackoverflow.com/questions/17620569/vsix-with-project-templates-and-nuget-packages">VSIX with Project Templates and NuGet Packages</a></li>
  <li><a href="https://stackoverflow.com/questions/40532807/how-to-include-a-nuget-package-in-a-visual-studio-extension-vsix">How to include a Nuget package in a Visual Studio Extension (vsix)</a></li>
  <li><a href="https://stackoverflow.com/questions/42201923/vsix-extension-how-can-i-ensure-a-referenced-dll-or-assembly-is-included-in-th">VSIX extension - How can I ensure a referenced dll or assembly is included in the VSIX file?</a></li>
  </ul>
  
  <p>Every single one of these questions/answers do not seem to address my specific problem.</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>I believe it is possible that the tool used to generate the VSIX package does not support the new <code>PackageReference</code> feature of NuGet. If I utilize the older packages.config feature, everything works fine. I have put in a <a href="https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/19361653-vsix-should-support-packagereference" rel="noreferrer">UserVoice Ticket</a> to support the new NuGet feature.</p>