3

we know that asp.net .resx files have an custom tool for generating some c# code (ResXFileCodeGenerator).

I have an xml file and I want to set the custom tool property of that to a T4 file.

how can i bind T4 file to the xml file?

Omid Shariati
  • 1,904
  • 5
  • 22
  • 44

2 Answers2

1

You can do that with T4 Toolbox. Select the resx file in Solution Explorer and set the Custom Tool Template in the Properties window.

Oleg Sych
  • 6,548
  • 36
  • 34
0

Have a look at http://t4-editor.tangible-engineering.com/t4editor_features.html#Compare. There's a feature called "Add Code Generation Item Command" that might do the trick.

Nico
  • 2,120
  • 16
  • 20