private TemplateFactoryResult CompilationError(RazorCodeDocument document, CompilationResult result) { var csdocs = document.GetCSharpDocument(); return(TemplateFactoryResult.Error(new StringValues(new string[] { document.Source.FilePath + ".error", string.Join( Environment.NewLine, result.Messages), csdocs.GeneratedCode }).ToString())); }
private TemplateFactoryResult GenerateError(RazorCodeDocument document) { var csdocs = document.GetCSharpDocument(); return(TemplateFactoryResult.Error(new StringValues(new string[] { document.Source.FilePath + ".error", string.Join( Environment.NewLine, csdocs.Diagnostics.Select(d => d.GetMessage())), csdocs.GeneratedCode }).ToString())); }