abp 如何设置和访问嵌入资源(视图、css、js等)

1、设置文件为嵌入资源

2、在含有嵌入资源的程序集下的模版类下,配置暴露嵌入的资源。

Configuration.EmbeddedResources.Sources.Add(
                new EmbeddedResourceSet(
                "/Views/",
                Assembly.GetExecutingAssembly(),
                "xxx.Views"
            ));
View Code

3、对嵌入资源的访问跟在本地web中访问是一样的(写法上)

具体细节,请参考:ABP框架 - 嵌入资源

原文地址:https://www.cnblogs.com/senyier/p/7417609.html