How do you create an xml file that can automatically create a *.designer.cs file similar to how *.resx files do so?
Basically, I have an xml file (foo.xyz
). When it is updated, I want it to automatically create (or update) a *.designer.cs file that is DependantUpon
the main foo.xyz
file. I have no idea what this process is even called to know how to search for any relevant information about it. Thanks!
Resx code behind is generated using PublicResXFileCodeGenerator VS custom tool. Here is a example on how to create new VS Custom tool, its for VS 2008 but I think the same process is in 2013:
http://www.codeproject.com/Articles/31257/Custom-Tools-Explained
Maybe for your needs it will be easier to go with T4 template code generation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With