How to include assemblies from NuGet packages in a VSIX Installer?

后端 未结 4 1283
感动是毒
感动是毒 2021-01-04 02:42

I\'m working on creating a Visual Studio 2017 custom Check-In Policy extension. My current solution is structured as follows:

Note: I am taking advantage of

4条回答
  •  轮回少年
    2021-01-04 03:15

    For those poor guys like us who face this problem (nuget using PackageReference and VSIX dependencies), I found a workaround, inspired by this post: NuGet packages referenced via PackageReference don't include DLLs in VSIX that didn't fully worked for me (it was including the metadata-only version of the assembly, not the full assembly with code). For example, here, I reference 4 nuget packages manually:

    
      
        
        
        
        
      
    
    

    PS: Tested with Visual Studio 2017 from 15.5.4 to 15.7.3

提交回复
热议问题