问题
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