-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] add an option to specify templates' location #606
Comments
One way to do this, that would be a lot like the old way of doing it, would be to modify TemplateFoldersUtilities to include the root project directory in its search path. (Probably requires a few more changes than just that, but you get the idea.) After that, you would be able to add a Admittedly, this isn't very useful for files like _Layout.cshtml that are only generated once since you could just as easily add it to its final location. But it could be useful for things like views and controllers. |
The scaffolding tool is great but it's tied to use bootstrap 3 and tweaking generated files for every project is annoying and time consuming! It would be nice to be able to pass a template's folder and the engine looks for templates inside it and use whatever available and use the current default template's path as a last resort!
I would love to provide the path and have the engine to look for templates as follows:
appsettings.*.json
to know the template's folder (if I didn't provide a path)I'm thinking about a similar approach for
dotnet new
to provide a different_layout.cshtml
that uses bootstrap 4 or any other framework!The text was updated successfully, but these errors were encountered: