cost 169 ms
是否有 RazorLight 的 ICachingProvider 的現成實現可以緩存在磁盤上並讓我們稍后重用它?

[英]Is there an off-the-shelf implementation of the RazorLight's ICachingProvider that would cache on disk and let us reuse it later?

我的用例 - 我想使用來自 Powershell 腳本的不同 model 實例呈現相同的模板。 我將 Razorlight 包裝在一個 exe 工具中,但我不想一次使用所有 model 對象調用該工具 - 相反,我希望能夠在它們可用時傳遞它們。 這意味着我不能使用MemoryCachingProv ...

使用 RazorLight 時如何在循環中包含另一個剃須刀模板?

[英]How to include another razor template in a loop when using RazorLight?

我有一個非常簡單的代碼示例,我試圖在循環中包含一個剃刀模板,但它不起作用。 請注意: 主要代碼在Program.cs中: 其他文件要小得多,並列在此問題的末尾。 因此,當我使用 0 或 1 運行它時,代碼會呈現 Input.json 中提供的列表中的第一項或第二項: 建造 跑 萬 ...

項目找不到帶有鍵 _Layout.cshtml 的模板

[英]Project can not find template with key _Layout.cshtml

我正在努力使_Layout.cshtml在FluentEmail中使用 _Layout.cshtml 的嵌入式資源時工作。 這是我得到的異常錯誤: 這是我到目前為止的設置: 在Program.cs的 ConfigureServices 中,我將RazorRenderer添加為: 在我的Notific ...

將 vue-qrcode 編譯成 razorlight 和 dinktopdf

[英]Compiling vue-qrcode into razorlight and dinktopdf

我正在構建一個 POC,我在其中使用 razorlight 編譯 index.cshtml,然后使用 dinktopdf 生成 pdf,到目前為止,我的那部分工作正常。 接下來,使用 vuejs 和 vue-qrcode,我能夠將 qrcode 添加到 qr-code 標簽轉換為 canvas 並 ...

通過 RazorLight.NetCore3 模板鍵渲染 Razor 頁面 HTML

[英]Razor Page HTML Rendering via RazorLight.NetCore3 Template Key

我最近為 Razor 頁面渲染集成了這個 RazorLight 包。 在使用時,我注意到必須定義一個模板鍵。 這個模板鍵實際上是什么,它有什么作用? 在這里,第一個參數采用模板鍵。 如果我使用不同的模板,那么我應該使用相同的密鑰還是不同的密鑰? ...

在常量 position 上添加 SVG 圖片,但僅在最后一頁

[英]Add SVG picture on constants position but only in last page

我嘗試通過 Razor 模板開票,並通過鉻將其轉換為 PDF。 我必須將付款表格添加到最后一頁,但在常量 position 中。 當我以這種方式付款時,svg 在正確的位置,但在第一頁並疊印發票區域 當我以這種方式付款時,付款表格在發票數據之后,但 position 是可變的。 我想設置絕對 pos ...

RazorLight for.Net Core 如何為 DE 語言設置編碼

[英]RazorLight for .Net Core how to setup encoding for DE lang

我在我的.Net Core 項目中使用了 RazorLight。 而且我需要用不同的語言解析 Resourses.resx 文件。 它適用於 EN,但是當我嘗試解析 DE lang(例如)時,我遇到了一些符號問題。 如何為 RazorLight 設置正確的編碼? 找不到有關此的任何信息。 或者請建議 ...

錯誤:無法從條目程序集加載元數據引用。 確保* .csproj文件中的PreserveCompilationContext設置為true

[英]Error: Can't load metadata reference from the entry assembly. Make sure PreserveCompilationContext is set to true in *.csproj file

此問題特定於RazorLight 。 錯誤: 無法從條目程序集加載元數據引用。 確保* .csproj文件中的PreserveCompilationContext設置為true 僅在我們部署到AWS后才會彈出此錯誤。 在本地機器上工作正常。 我已經將 Preserv ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM