Seal Report Forum
»
Report Edition
»
Reports
»
[Views] Precompile Razor views
Rank: Newbie
Groups: Registered
Joined: 7/5/2022(UTC) Posts: 2
|
hello, maybe a silly question (I'm new to Seal), but is it possible to pre-compile .cshtml files used for reports ? My goal is to speed up the execution of the report generator. My .net core 6 project embeds SealReportLibrary.NETCore 6.5.0, I was thinking of using this : https://docs.microsoft.c...0&tabs=visual-studioThanks Pierre Edited by user Tuesday, July 5, 2022 2:07:36 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
There is no pre-compile option in the current version (may be a feature request ?). The compiled assemblies are cached anyway by the razor engine, thus once compiled, the next call performed used the compiled version (for the same script). This explain why the first execution may take time, but this is not relevant for the Web Report Server if it remains up.
Note that the use of .Net Core 6 requires Seal Report 6.6
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 7/5/2022(UTC) Posts: 2
|
Hi, thank you it's very clear. I will make a feature request indeed.
Unfortunately, we don't use the Web Report Server, because we would have to install it for all our customers.
We have several problems related to the architecture of our application: - SealReport includes Razor Engine with Razor.Language 2.2.0 as a dependency, yet we have another subproject including Razor.Language 6.0.2 -> Nuget hell when building the main project, - To get around this problem, we created a "reportbuilder.exe" from our reporting subproject, including SealReport. But every time the main project runs reportbuilder.exe, the Razor Engine recompiles the templates for each report generation, the generation time is about 30 seconds.
Have a nice day
|
|
|
|
Seal Report Forum
»
Report Edition
»
Reports
»
[Views] Precompile Razor views
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.