问题
Is There Any Way or trick to generate local resource for all pages in visual studio 2010 automatically? I have about 500 pages and UserControls. its hard to generate resource for every page one by one. is there Any Add on or extension for this? shaahin.
回答1:
Write a script, no? A resource file is nothing but an XML file.
回答2:
Write a macro as suggested in Is it possoble to run 'Generate Local Resources Tool' programmatically?
Also from http://www.guysmithferrier.com/post/2009/05/Localizing-ASPNET-MVC.aspx :
Convert your HTML controls to equivalent ASP.NET server side controls. If this is your plan then you should take a look at the I18NRefactorings (an add-in for the free DXCore) in the download at http://www.dotneti18n.com/Downloads.aspx (folder VS2010/ASPNETSpecifics/I18NRefactorings/I18NRefactorings in the 2010 zip) that will help automate this process.
来源:https://stackoverflow.com/questions/3359634/generate-local-resource-for-all-pages