Add Nuget packages to a multi-project Sidewaffle template

ぃ、小莉子 提交于 2019-12-06 06:02:22

The 2.0 schema tag should look like this:

<Asset d:Source="File"
       Type="System.Collections.Immutable.1.1.33-beta.nupkg" 
       Path="Packages\System.Collections.Immutable.1.1.33-beta.nupkg" 
       d:VsixSubPath="Packages" />

And yes, you should author your project template such that it does not have any references or packages.config file that installing the NuGet package(s) would have put there. As your template is expanded on your customer's machine, the NuGet custom wizard will run and add the packages.config and references to the project.

Both of your questions were excellent, so I filed a couple pull requests to update the docs with the answers:

  1. 2.0 schema sample
  2. Removing references that NuGet will add
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!