Is it possible to specify a language compiler version?
jfrank14 opened this issue · 1 comments
jfrank14 commented
Specifically, I want to use the latest version of the VB compiler so that I can use interpolated strings, as in:
$"/sso/guid/{Model.Guid}/{othervariable}"))
But by default, RazorEngine throws a compiler error on this. VisualStudio itself allows a web.config entry like:
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
for supporting this. Can I do the same in RazorEngine, and how?
jfrank14 commented
Guys, this one is really hurting me, because my templates have to be written in 5 year old syntax. Is there any way to accomplish this?