PWA: Service worker registration 5.0 (#20744)
parent
655bb565bd
commit
4a983e0903
|
@ -4,7 +4,7 @@ author: scottaddie
|
|||
description: Learn how to migrate an ASP.NET Core 3.1 project to ASP.NET Core 5.0.
|
||||
ms.author: scaddie
|
||||
ms.custom: mvc
|
||||
ms.date: 11/19/2020
|
||||
ms.date: 11/24/2020
|
||||
no-loc: [appsettings.json, "ASP.NET Core Identity", cookie, Cookie, Blazor, "Blazor Server", "Blazor WebAssembly", "Identity", "Let's Encrypt", Razor, SignalR]
|
||||
uid: migration/31-to-50
|
||||
---
|
||||
|
@ -557,6 +557,17 @@ To resolve the error:
|
|||
1. In the Azure portal, access the [app's manifest](/azure/active-directory/develop/reference-app-manifest).
|
||||
1. Set the [`allowPublicClient`](/azure/active-directory/develop/reference-app-manifest#allowpublicclient-attribute) attribute to `null` or `true`.
|
||||
|
||||
## Update a Blazor Progressive Web Application (PWA)
|
||||
|
||||
Add the following item to the PWA app's project file:
|
||||
|
||||
```xml
|
||||
<ItemGroup>
|
||||
<ServiceWorker Include="wwwroot\service-worker.js"
|
||||
PublishedContent="wwwroot\service-worker.published.js" />
|
||||
</ItemGroup>
|
||||
```
|
||||
|
||||
## Update Razor class libraries (RCLs)
|
||||
|
||||
Migrate Razor class libraries (RCLs) to take advantage of new APIs or features that are introduced as part of ASP.NET Core 5.0.
|
||||
|
|
Loading…
Reference in New Issue