3.4 KiB
ABP Framework 4.x to 4.3 Migration Guide
This version comes with some changes in the startup template, mostly related to Blazor UI. This document explains the breaking changes. However, it is suggested to compare the startup templates manually to see all the changes and apply to your solution.
Common
app.UseVirtualFiles()has been marked as obsolete. Useapp.UseStaticFiles()instead. ABP will handle the virtual file system integrated to the static files middleware.
Blazor UI
Implemented the Blazor Server Side support with this release. It required some packages and namespaces arrangements. Existing Blazor (WebAssembly) applications should done the changes explained in this section.
Namespace Changes
AbpBlazorMessageLocalizerHelper-> moved to Volo.Abp.AspNetCore.Components.WebAbpRouterOptions-> moved to Volo.Abp.AspNetCore.Components.Web.Theming.RoutingAbpToolbarOptionsandIToolbarContributor-> moved to Volo.Abp.AspNetCore.Components.Web.Theming.ToolbarsIAbpUtilsService-> moved to Volo.Abp.AspNetCore.Components.WebPageHeader-> moved toVolo.Abp.AspNetCore.Components.Web.Theming.Layout.
In practice, if your application is broken because of the Volo.Abp.AspNetCore.Components.WebAssembly.* namespace, please try to switch to Volo.Abp.AspNetCore.Components.Web.* namespace.
Remember to change namespaces in the _Imports.razor files.
Package Changes
No change on the framework packages, but module packages are separated as Web Assembly & Server;
- Use
Volo.Abp.Identity.Blazor.WebAssemblyNuGet package instead ofVolo.Abp.Identity.Blazorpackage. Also, changeAbpIdentityBlazorModuleusage toAbpIdentityBlazorWebAssemblyModulein the[DependsOn]attribute on your module class. - Use
Volo.Abp.TenantManagement.Blazor.WebAssemblyNuGet package instead ofVolo.Abp.TenantManagement.Blazorpackage. Also, changeAbpTenantManagementBlazorModuleusage toAbpTenantManagementBlazorWebAssemblyModulein the[DependsOn]attribute on your module class. - Use
Volo.Abp.PermissionManagement.Blazor.WebAssemblyNuGet package instead ofVolo.Abp.PermissionManagement.Blazorpackage. Also, changeAbpPermissionManagementBlazorModuleusage toAbpPermissionManagementBlazorWebAssemblyModulein the[DependsOn]attribute on your module class. - Use
Volo.Abp.SettingManagement.Blazor.WebAssemblyNuGet package instead ofVolo.Abp.SettingManagement.Blazorpackage. Also, changeAbpSettingManagementBlazorModuleusage toAbpSettingManagementBlazorWebAssemblyModulein the[DependsOn]attribute on your module class. - Use
Volo.Abp.FeatureManagement.Blazor.WebAssemblyNuGet package instead ofVolo.Abp.FeatureManagement.Blazorpackage. Also, changeAbpFeatureManagementBlazorModuleusage toAbpFeatureManagementBlazorWebAssemblyModulein the[DependsOn]attribute on your module class.
Other Changes
EntityAction.RequiredPermissionhas been marked as obsolete, because of performance reasons. It is suggested to use theVisibleproperty by checking the permission/policy yourself and assigning to a variable.
Resource Reference Changes
Open <YourProjectName>BundleContributor.cs and replace context.Add("main.css"); to context.Add("main.css", true);
Then run abp bundle command in the blazor folder to update resource references.