Migration Guide for the Blazor UI from the v3.2 to the v3.3
Startup Template Changes
All these changes should be done for the .Blazor
project in your solution;
- Update the
AddOidcAuthentication
options in your YourProjectBlazorModule class as described in the issue #5913. - Add a
Components/Layout/MainFooterComponent.razor
file with the following content:
Change MyProjectName
with your own project name or completely modify the footer based on your preference.
- For the
.Blazor.csproj
file, remove theVolo.Abp.Account.Pro.Public.Blazor
package and add these packages:Volo.Abp.SettingManagement.Blazor
,Volo.Saas.Host.Blazor
,Volo.Abp.LeptonTheme.Management.Blazor
,Volo.Abp.Account.Pro.Admin.Blazor
,Volo.Abp.TextTemplateManagement.Blazor
,Volo.Abp.AuditLogging.Blazor
,Volo.Abp.LanguageManagement.Blazor
. - Add the following module dependencies for YourProjectBlazorModule class:
- Add the following code into the
ConfigureServices
method of YourProjectBlazorModule class:
This sets the footer component you've created before.
- You may want to add (or change the existing) menu contributor to re-order the menu items added by the depended modules:
- You may need to add or update the
MyProjectNameMenus.cs
for your project:
- Add the missing files into the
wwwroot
folder. The best way to do that is to create a new Blazor UI solution, open thewwwroot
folder and copy the missing files. In the next versions, we will work to build a 3rd party library management system for automatic upgrades. However, please consider the current Blazor UI is not so complete. - Open the
wwwroot/index.html
file and make the following changes;
Remove the following line:
Add the following lines in the head
section, before the main.css
:
Remove the following code (since the ABP Framework now provides a better error handling system):
Remove the following line:
Add the following lines instead:
- Upgrade Microsoft.Extensions.* packages to 3.1.8+.
If you have trouble, it is best to download a new solution and compare the files with yours. There are not so many files in the startup template.
BlazoriseCrudPageBase to AbpCrudPageBase
Renamed BlazoriseCrudPageBase
to AbpCrudPageBase
. Just update the usages. It also has some changes, you may need to update method calls/usages manually.