How to set the `custom tool` property of an xml file in a T4 file?

we know that asp.net.resx files have their own tool for generating some C # code ( ResXFileCodeGenerator ).

I have an xml file and I want to set a custom tool property for it in a T4 file .

How can I link a T4 file to an xml file?

+2
source share
2 answers

You can do this with the T4 Toolbox . Select the resx file in Solution Explorer and set the custom tool template in the Properties window.

+1
source

All Articles