So I have a folder that I would like to convert into a template so that I can quickly create skeletons for apps I want to build in the future.
I have the following folder structure:
App
|-- web (angular/react/etc - no solution file(s) no project file(s)
|-- api (C# web api)
I can use dotnet install app to create a template locally to use with dotnet new app -n MyApp
However, I want to be able to use this within Visual Studio.
Documentation I have been reading says that a template is just a zip file. However, dotnet new install does not create a zip file.
Documentation also says that you can use a nupkg file, however you have to use dotnet pack to do this, and dotnet cannot create a nupkg file without a project file.
End goal:
I can use dotnet new app -name MyApp from the CLI OR I can do new > project in Visual Studio and find the template, which will then add all of the files that I have in my app folder, maintaining the folder/file structure, and renaming all of the pertinent folders/files/file content with customized content.
Am I expecting too much of dotnet/Visual Studio/Microsoft?
I have tried adding my app folder as an asset in a VSIX manifest file - but you cannot do that, it has to be a file.
I have tried adding the app folder into a template project, but that blows up because the api folder has a solution and other projects within it and custom usings "cannot be found" (because why would they be if the solution/projects are not meant to be compiled for a template?)
EDIT: For all intents and purposes of my goal, Github does not exist. So the referenced "duplicate" question is completely unrelated.
Acceptance Criteria: To be able to, in Visual Studio 2022, select "File > New > Project..." find my template, containing an "app" folder and an "api" folder - "app" being an angular application that is not wrapped in a C# project/solution, and the api folder containing a C# .Net 4.8 Web Api Solution with multiple projects within it. For completeness purpose, both of these folders will contain folders, files, and file contents with MyCustomName which should all be renamed upon project creation.
dotnetSDK tool has nothing at all to do with specific editors nor does it generate templates for them. All IDEs provide support the .NET templates one way or another.csprojfile but managing multiple templates is a project in itself.Export Templatewizard to create a new template