I am trying to compile a razor file with this line
RazorEngine.Razor.Parse("Hello world");
But he just throws
base {System.Exception} = {"Unable to compile template. Source file 'C:\\Windows\\TEMP\\vlu4zahf.0.cs' could not be found\n\nOther compilation errors may have occurred. Check the Errors property for more information."}
And the error property looks like this:
[0] = {error CS2001: Source file 'C:\Windows\TEMP\vlu4zahf.0.cs' could not be found}
[1] = {warning CS2008: No source files specified}
So there is no good information.
I am running .NET 4.0 and Razor Engine 3.2.0.0
Update 1
I found an error in this line in RazorEngine
Tuple.Create(
compileResult.CompiledAssembly.GetType("CompiledRazorTemplates.Dynamic." + context.ClassName),
compileResult.CompiledAssembly);
source
share