Skip to content
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

Add a postAction for running other templates #7176

Open
wekempf opened this issue Oct 19, 2023 · 1 comment
Open

Add a postAction for running other templates #7176

wekempf opened this issue Oct 19, 2023 · 1 comment

Comments

@wekempf
Copy link

wekempf commented Oct 19, 2023

Is your feature request related to a problem? Please describe.

Currently there's issue #3208 open to address several pain points, among them is the pain of having to maintain the same .editorconfig file in multiple templates with a suggested solution of adding some common template features behind some parameters. This is a very specific solution that doesn't address the wider problem of having similar needs for file reuse.

Describe the solution you'd like.

Your pain with .editorconfig is not unique to it. Internally we have a few different files that are necessary to exist at the root level in every repository. Specifically for this issue, separate from the other features discussed, I think there should be a postAction for running other templates. Policy to always include a global.json file? Add a post action to run the globaljson template. Policy to always include a build script? Add a post action to run a buildscript template. Policy to always include a Directory.Build.props? Add a post action to run a directorybuildprops template. Etc.

There's minor concern for specifying a template that's not installed so you could consider some way of specifying template dependencies, but honestly just producing an error when the template doesn't exist is good enough.

Additional context

No response

@clazarr
Copy link

clazarr commented Feb 8, 2024

I think this would be very useful feature! I would add to this request that the proposed Run Template Post Action should be supported in Visual Studio. Most of the existing Post Actions here are not supported/are ignored when the template is run from Visual Studio.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants