Include whole folder in VSIX

﹥>﹥吖頭↗ 提交于 2020-01-03 06:46:09

问题


Is there an easy way to include a whole folder as content in a VSIX package? Hopefully there is an easier way than setting the "Include in VSIX" flag for each file separately.

The reason why we need this, is to add a compiled html help page (with a lot of dependency files) to our extension.


回答1:


Is there an easy way to include a whole folder as content in a VSIX package? Hopefully there is an easier way than setting the "Include in VSIX" flag for each file separately.

You can use wildcard * to include all the files under the folder as content into the VSIX package, like:

<Content Include="TestFolder\*.*">
  <IncludeInVSIX>true</IncludeInVSIX>
</Content>

After build the VSIX project, change the generated file .vsix to .zip and unzip it, we will find all the files in the TestFolder.

Hope this helps.



来源:https://stackoverflow.com/questions/51180046/include-whole-folder-in-vsix

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