toddams/RazorLight

QUESTION: Is it possible work with vbhtml files?

JBypass opened this issue · 1 comments

Hello,

The tool works great, but I have a project in vb and, although it works well too, I can't work with views in vbhtml, I have to change to cshtml.

It is not a major problem, but I have a lot of emails templates in vbhtml that I would have to convert to C# and I think that I would lost the intellisense.

It is possible work with vbhtml files?

Many thanks for the tool and for the help!

I... don't know. I suppose since Roslyn supports VB.NET, then it is possible but you might have to dig to make it work. I am personally not interested in supporting VB.NET, since I have never had that request in 4 years of doing this and don't see it as an in-demand technology.

But you would basically be replacing a bunch of stuff, for example, all the C#-specific stuff is private variables in RazorLight's RoslynCompilationService class:

private CSharpParseOptions _parseOptions;
private CSharpCompilationOptions _compilationOptions;

You could add a PR for this but please be sure to cover it with tests. Quite a bit of work if you ask me.