Html.ActionLink not converted properly

Developer
Jun 27, 2011 at 8:41 AM

I have Html ActionLinks that are not converted properly.

Generated code:
@Html.ActionLink<MyController>(c => c.Index(null, null, false), "Assets")

should be:

@(Html.ActionLink<MyController>(c => c.Index(null, null, false), "Assets"))

Also I found a bug in a foreach / if statement.

 <% if (a == true) %>
         { %>
      Some text
      <% } %>

Is converted to:

@if (a == true)
         {
      Some text
      }

But this is not valid for razor.

Hope you can fix this! Thanks.

Coordinator
Jul 12, 2011 at 1:48 PM

That sucks man, the converter is not 100% but if you want to give a crack at updating the code to make it just perfect by I can sign you up as a contributor. There isn't much code to the project so it should be relatively simple for you to adjust. Let me know, thanks.

Developer
Jul 12, 2011 at 5:14 PM

Yes, that would be great. I already made some improvements.

If you give me a contributor role on the project, I'll upload the source code.

Michiel