Abp vNext(四)运行项目

运行环境

Win11

vs2022

Abp vNext 7.0.0

初始化数据库成功后,用swagger打开是正常的,但是浏览站点异常

An unhandled exception occurred while processing the request.

AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'LeptonXLite.Global'!

Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName)

异常截图

发现wwwroot/libs文件夹是空的,并且npm引用项也有问题

右键wwwroot文件夹→在终端中打开,输入一下命令

cs 复制代码
abp install-libs

会重新进行安装libs

安装完成后编译,重新运行,即可正常访问。

上一篇:Abp vNext(三)数据迁移

下一篇:

相关推荐
1-1=01 天前
ASP.NET Core 自定义容器 和 自定义日志
asp.net·.netcore
1-1=03 天前
ASP.NET Core HTTP 请求管道
.netcore
宝桥南山10 天前
Visual Studio - 记录一个Visual Studio 2026(Insiders)的更新问题
windows·microsoft·微软·.net·.netcore·visual studio
1-1=024 天前
C# 数据结构和特殊类型
数据结构·c#·.net·.netcore
1-1=01 个月前
C# IO和序列化
c#·.net·.netcore
宝桥南山1 个月前
.NET 11 - 尝试一下Blazor中的新特性SupplyParameterFromTempData
microsoft·微软·c#·asp.net·.net·.netcore
1-1=01 个月前
C# 特性(Attribute)
c#·.net·.netcore
淡海水1 个月前
10-01-互操作-C#与C++边界的内存管理
unity·c#·游戏引擎·.netcore·gc
1-1=01 个月前
C# 反射
c#·.net·.netcore
1-1=01 个月前
C# 泛型
c#·.net·.netcore