madskristensen / AddAnyFile

A Visual Studio extension
Apache License 2.0
263 stars 122 forks source link

Existing template not included in vsix package #94

Open maxime-poulain opened 2 years ago

maxime-poulain commented 2 years ago

Hello,

I noticed that this razor component template introduced with e4e4b6e5b23295e5c3ccd3c10440835fcd5668cd is not included in the vsix package.

Simply because it is not configured to be included (see csproj).

Why not replace every

    <Content Include="Templates\.XXXXX.txt">
      <IncludeInVSIX>true</IncludeInVSIX>
    </Content>

with

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

Doing so will ensure including template into the vsix package

KiritchoukC commented 2 years ago

Hi @Khaon,

But those templates won't be included "Templates\gruntfile.js.txt" "Templates\gulpfile.js.txt" "Templates\package.json.txt"

Maybe this one will suffice

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