Generate Local Resource for all pages

人走茶凉 提交于 2019-12-22 10:33:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!