Mostrando las entradas con la etiqueta Razor. Mostrar todas las entradas
Mostrando las entradas con la etiqueta Razor. Mostrar todas las entradas

martes, julio 05, 2011

Faster Localization on ASP.NET MVC3 with Razor

Some time ago I asked at StackOverflow if someone knew any Visual Studio 2010 add-in for Razor, where I can select a string and send it directly to a Resource file. I did not get any useful answer. So I download the last version I found of the Resource Refactoring Tool, here or here. And I touch a few lines of code so that it supports .cshtml files (Razor). Below you can download the source or/and the installer.
How it works:
Just in your cshtml file, select a string that is inside quotes marks "" or @"", and then click on Refactor -> Extract to resource.

Hope it helps.
Installer            Source

martes, octubre 26, 2010

MVC 3 ejemplo con Razor

En este link un buen ejemplo completo de MVC 3 con el nuevo Razor View Engine. Y también con un WYSIWYG llamado TinyMCE.