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=04 天前
C# 数据结构和特殊类型
数据结构·c#·.net·.netcore
1-1=06 天前
C# IO和序列化
c#·.net·.netcore
宝桥南山7 天前
.NET 11 - 尝试一下Blazor中的新特性SupplyParameterFromTempData
microsoft·微软·c#·asp.net·.net·.netcore
1-1=09 天前
C# 特性(Attribute)
c#·.net·.netcore
淡海水9 天前
10-01-互操作-C#与C++边界的内存管理
unity·c#·游戏引擎·.netcore·gc
1-1=010 天前
C# 反射
c#·.net·.netcore
1-1=011 天前
C# 泛型
c#·.net·.netcore
淡海水12 天前
09-01-内存-Unity资源生命周期全景
unity·c#·游戏引擎·.netcore·gc
1-1=012 天前
.NET Core 编译技术
.net·.netcore
1-1=014 天前
.NET Core 文件系统
.net·.netcore·1024程序员节