I have an xml file (resource.xml) in my asp.net mvc project and a T4 file (resource.tt) to convert that file to json in a .js file (resource.js).
The issue is i want to run t4 file automatically when resource.xml file changes or saved.
I know that in asp.net has a .resx file that when it changes, a custom tool automatically generate a file,
I want something like that
Update: In my project I have an xml file in /Resources/Resource.fr.xml and a t4 file that read the xml file and generate json object in /Resources/Resource.fr.js file. I want to t4 file generate the .js file when xml file saved or changes.