Question: is there a way to set the parameter in the * .tt file so that the generated files are configured for the specified assembly action?
The fact is that I generate code using a template, but this only means a starting point that excludes a lot of typing. I don’t want anyone to use the code (generated classes) as is, and I don’t want it to clutter the namespace. Currently, I have to manually set the Build Action to None every time a new file is added by the template - I would like to automate it.
Thanks!
Andrei
source share