Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make my own version of a "resx" file in Visual Studio 2013?

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!

like image 607
michael Avatar asked Oct 21 '22 18:10

michael


1 Answers

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.

like image 78
Jurica Smircic Avatar answered Oct 31 '22 18:10

Jurica Smircic