問題
從 abp.io/get-started 設定 UI Framework 為 MVC (Razor Pages) or Blazor Server UI,下載 Source 後,
透過 Visual Studio 建置執行後,會出現 Volo.Abp.AbpException: Could not find the bundle file ‘/libs/abp/core/abp.css’ for the bundle ‘Basic.Global’! 的錯誤
解法
依 ABP.IO Platform 5.2 RC Has Been Published 說明如下,
With version 5.2, this folder is excluded from the source control by default, so every developer getting the solution must run abp install-libs in the UI project’s root directory to install these libraries.
所以當從 abp.io/get-started 下載 Source 後,要在 UI 專案根目錄執行abp install-libs
,就會在 wwwroot 目錄中產生 libs 目錄。
如果透過 apb cli 去建立專案,則會自動執行 abp install-libs
,所以建立完成後,UI 專案中的 wwwroot 目錄中就會有 libs 的目錄。
所以如果噴 Volo.Abp.AbpException: Could not find the bundle file ‘/libs/abp/core/abp.css’ for the bundle ‘Basic.Global’! 的錯誤,在 UI 專案根目錄執行 abp install-libs
,或是從別的專案中,將 libs 目錄 Copy 到需要的專案 wwwroot 目錄之中。
參考資源
AbpException: Could not find the bundle file ‘/libs/abp/core/abp.css’ for the bundle ‘Basic.Global’!
ABP.IO Platform 5.2 RC Has Been Published