在 VSIX 中包含整个文件夹 [英] Include whole folder in VSIX
问题描述
是否有一种简单的方法可以将整个文件夹作为内容包含在 VSIX 包中?希望有比分别为每个文件设置包含在 VSIX 中"标志更简单的方法.
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.
我们之所以需要这个,是为了给我们的扩展添加一个编译好的 html 帮助页面(有很多依赖文件).
The reason why we need this, is to add a compiled html help page (with a lot of dependency files) to our extension.
推荐答案
是否有一种简单的方法可以将整个文件夹作为内容包含在 VSIX 包中?希望有比分别为每个文件设置包含在 VSIX 中"标志更简单的方法.
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.
您可以使用通配符 *
将文件夹下的所有文件作为内容包含到 VSIX 包中,例如:
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>
构建VSIX项目后,将生成的文件.vsix
改为.zip
并解压,我们会在TestFolder
中找到所有文件代码>.
After build the VSIX project, change the generated file .vsix
to .zip
and unzip it, we will find all the files in the TestFolder
.
希望这会有所帮助.
这篇关于在 VSIX 中包含整个文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!