在 VSIX 中包含整个文件夹 [英] Include whole folder in VSIX

查看:38
本文介绍了在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆