I am creating a multi-project template, that has a few optional projects and solution folders. I have been through quite a few different documentations and code in github to achieve this, but with very little success. I really appreciate if someone could give me some clarity on some of these questions?
- Is VSTemplate xml file still relevant? This blog suggests making changes in the template.json file, however when I check for examples in github, people use VSTemplate to make to create the project, and also SideWaffle plugin still creates the VSTemplate file. If its still relevant, Would like to know how does it differ from the json file?
Using the above VSTemplate I attempted to create a multi project template,using the ProjectCollection tage, when I run the dotnet run command, the template gets executed but the project does not get created.
<ProjectTemplateLink ProjectName="$safeprojectname$.Forms.Plugin.Abstractions"> Forms.Plugin.Abstractions\Forms.Plugin.Abstractions.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.Forms.Plugin.iOS"> Forms.Plugin.iOS\Forms.Plugin.iOS.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.Forms.Plugin.iOSUnified"> Forms.Plugin.iOSUnified\Forms.Plugin.iOSUnified.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.Forms.Plugin.Android"> Forms.Plugin.Android\Forms.Plugin.Android.vstemplate </ProjectTemplateLink> <ProjectTemplateLink ProjectName="$safeprojectname$.Forms.Plugin.WindowsPhone"> Forms.Plugin.WindowsPhone\Forms.Plugin.WindowsPhone.vstemplate </ProjectTemplateLink> </ProjectCollection>```
Can we create a multi-project template using template.json file?
Would appreciate if anyone can help me get started.