Próbuję skompilować plik z ostrzami z tej liniiRazorEngine parse rzuca Nie można skompilować
RazorEngine.Razor.Parse("Hello world");
Ale to po prostu rzuca
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."}
a właściwość błąd wygląda tak:
[0] = {error CS2001: Source file 'C:\Windows\TEMP\vlu4zahf.0.cs' could not be found}
[1] = {warning CS2008: No source files specified}
Więc nie ma dobrych informacji.
biegnę .NET 4.0 i Razor silnika 3.2.0.0
Update 1
ja się błąd na tej linii w RazorEngine
Tuple.Create(
compileResult.CompiledAssembly.GetType("CompiledRazorTemplates.Dynamic." + context.ClassName),
compileResult.CompiledAssembly);
Proszę sprawdzić http://stackoverflow.com/questions/6444277/using-razorengine-to-parse-razor -templates-while – Amit
@AmitAgrawal Dzięki, ale post dotyczy bezpieczeństwa nici. W tej chwili mam tylko jeden wątek aktywny. –