I want to create project template from folder containing few html/js files. More files can be added on later.
For this, I followed the Getting started with vsix project template.
Simply, there are 2 main steps:
- Create project, add required files and then export from project menu - It will generate the zip file in exported templates folder under VS directory in My Docs.
- Create VSIX Project (requires VS
extension SDK installed) and double click
source.extension.vsixmanifest
and in Assets add type - project template type and source - above zip file location
Now, since I have Non .Net based files, I need to have solution folder and export it. But when I create solution folder option for exporting is disabled in project menu. Is there any way to export solution folder?
I also tried with empty console project. In this case after installing from vsix (output from project in step 2), the new project is created with empty folder - no html/js files included. Also, the new template is shown under C# project, it would be better if shown under other project type. My csproj file for reference below:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>Net47</TargetFramework>
<ApplicationIcon />
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Folder Include="MyJSFolder\" />
</ItemGroup>
</Project>
So, how do create project template in this case?