天天看点

Abp报错Must set LocalizationSourceName before, in order to get LocalizationSource

遇到错误:Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource

解决方法很简单,在报错的位置如controller中加入如下代码即可。

LocalizationSourceName = ProjectNameConsts.LocalizationSourceName;
           

ProjectName为你的项目名称。