-
Notifications
You must be signed in to change notification settings - Fork 58
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 Single File Generator for Visual Studio #38
Comments
Hi @gtbuchanan, I don't actually think i've ever used the functionality in visual studio so am not entirely sure what it'd be used for. What would you like the file to be transformed in to, a |
@Romanx With T4, the generator functionality is used to automatically create the resulting file when the template is saved in Visual Studio. However, T4 has a built-in construct for defining the output file extension:
After thinking about it a little longer, the following would be required for this to work:
I was not aware of Scripty. Considering these things, you might be right about Scripty being a better choice. Though there is a current issue about 3rd party references being a pain. |
It's possible to have Visual Studio generate a file on save of another file using a Single File Generator. T4 templates use the built-in
TextTemplatingFileGenerator
, but I believe other custom generators can be installed by a Visual Studio Extension.It'd be great to have this functionality with Mustache templates as well.
Getting it working on .NET Standard
The text was updated successfully, but these errors were encountered: