I have a considerable amount of ASPX and ASCX files writed in C# for MVC and I would like to convert them to the new Razor syntax.
Any body knows about some utility that makes this job faster?
I have a considerable amount of ASPX and ASCX files writed in C# for MVC and I would like to convert them to the new Razor syntax.
Any body knows about some utility that makes this job faster?
A bit too early for such a tool, considering that Razor is not yet out of beta and just got syntax highlighting in the latest SP.
However, a google finds this codeplex project:
I've written a small piece of code that makes the conversion. I think it could be useful to somebody else. I've learned a lot about regex's balancing goup definitions on the way.
Try this
http://razorconverter.codeplex.com/
It is a codeplex project that I wrote that automates Olma code with some refinements. There is also an exe download that requires .Net 2.0 I think and you can just drop it into your view folder and it converts everything automatically.