Template with multiple solutions #5342
-
I"ve used templating long time ago and created template with multiple projects. Now it is time to update that template to contain multiple solutions with multiple projects. For example, I want to have template to be able to create either clean architecture structure or classic layered architecture. Is it possible to do that now? CLI command should be something like: There should be one nuget which supports all this templates. Or do you recommends that I should have n templates for n architecture styles?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Imo, this should be a single template with |
Beta Was this translation helpful? Give feedback.
-
Visual Studio will handle multiple slns being output with the following cavets:
Given that, my suggestion would be to either have one template with choice parameters like Vlada suggested to control which solutions to generate. These can be exposed both on the command line and in Visual Studio. You can use the conditions to use source excludes/includes to only output the one appropriate sln file. |
Beta Was this translation helpful? Give feedback.
Visual Studio will handle multiple slns being output with the following cavets: